code: def get_installed_packages() -> dict:
      """Get all packages installed in current python environment"""
      from pip._internal.utils.misc import get_installed_distributions
  
      return {
          item.key: Version(item.version)
          for item in get_installed_distributions()
      }
  
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 1 for calling a global function with example usage: get_installed_packages() and returns: unknown