code: def is_package_present(package_name: str) -> bool:
      try:
          return find_spec(package_name) is not None
      except ModuleNotFoundError:
          return False
  
file_path: ray/python/ray/_private/accelerators/hpu.py
imports: import os
  import logging
  from typing import Optional, List, Tuple
  from functools import lru_cache
  from importlib.util import find_spec
  from ray._private.accelerators.accelerator import AcceleratorManager
label_desc: Use image node_id 1 for calling a global function with example usage: is_package_present(package_name) and returns: unknown, False