code: def uninstall(
      package: str, ostream: IO = sys.stdout, estream: IO = sys.stderr
  ) -> bool:
      """Uninstall the python package."""
      # type in 'y' to confirm the uninstall operation
      cmd = "{} -m pip uninstall {} -y".format(sys.executable, package)
      result, content = subprocess.getstatusoutput(cmd)
      if result:
          estream.write(content)
      else:
          ostream.write(content)
      return result == 0
  
file_path: PaddleHub/paddlehub/utils/pypi.py
imports: import os
  import subprocess
  import sys
  from typing import IO
  from paddlehub.utils.utils import Version
  from paddlehub.utils.io import discard_oe
label_desc: Use image node_id 5 for calling a global function with example usage: uninstall(package, ostream, estream) and returns: unknown