input: 
  import typing
  
  def port_java_to_python(java_code: str) -> str:
      """
      Convert a given Java code snippet to its equivalent Python 3 code.
      
      >>> port_java_to_python("public class Foo {\n  public int foo( int a, int b ) {\n    return a + b;\n  }\n}")
      "def foo(a, b):\n return a + b"
      """
  
output:     java_code = java_code.replace("public class ", "")
      java_code = java_code.replace("public ", "")
      java_code = java_code.replace("int ", "")
      java_code = java_code.replace("return ", "")
      java_code = java_code.replace(";", "")
      java_code = java_code.replace("{", "")
      java_code = java_code.replace("}", "")
      java_code = java_code.replace("  ", " ")
      java_code = java_code.replace("( ", "(")
      java_code = java_code.replace(" )", ")")
      java_code = java_code.replace("\n", "")
      java_code = java_code.strip()
      java_code = java_code.replace("foo(", "def foo(")
      java_code = java_code.replace("return", "return ")
      return java_code