code: def issubclass_safe(obj: Any, cls_: type) -> bool:
      try:
          return issubclass(obj, cls_)
      except TypeError:
          return False
  
file_path: ray/python/ray/_private/ray_option_utils.py
imports: import warnings
  from dataclasses import dataclass
  from typing import Any, Callable, Dict, Optional, Tuple, Union
  import ray
  from ray._private import ray_constants
  from ray._private.utils import get_ray_doc_version
  from ray.util.placement_group import PlacementGroup
  from ray.util.scheduling_strategies import NodeAffinitySchedulingStrategy, PlacementGroupSchedulingStrategy, NodeLabelSchedulingStrategy
label_desc: Use image node_id 5 for calling a global function with example usage: issubclass_safe(obj, cls_) and returns: issubclass, False