code: def get_distributions():
      res = subprocess.check_output(
          [sys.executable, "-m", "pip", "list", "--format", "json"],
          text=True,
      )
      return [(pkg["name"], pkg["version"]) for pkg in json.loads(res)]
  
imports: import asyncio
  import json
  import subprocess
  import sys
  import traceback
  import aiohttp
label_desc: Use image node_id 1 for calling a global function with example usage: get_distributions() and returns: unknown