code: def is_installed(package_name):
      from pip._internal.utils.misc import get_installed_distributions
  
      for p in get_installed_distributions():
          if package_name in p.egg_name():
              return True
      return False
  
file_path: norfair/demos/alphapose/setup.py
imports: import os
  import platform
  import subprocess
  import time
  import numpy
  from Cython.Build import cythonize
  from setuptools import Extension, find_packages, setup
  from torch.utils.cpp_extension import BuildExtension, CUDAExtension
label_desc: Use image node_id 10 for calling a global function with example usage: is_installed(package_name) and returns: False, True