code: def requires_backends(obj, backends):
      if not isinstance(backends, (list, tuple)):
          backends = [backends]
  
      name = (
          obj.__name__
          if hasattr(obj, "__name__")
          else obj.__class__.__name__
      )
      checks = (BACKENDS_MAPPING[backend] for backend in backends)
      failed = [
          msg.format(name)
          for available, msg in checks
          if not available()
      ]
      if failed:
          raise ImportError("".join(failed))
  
imports: import importlib.util
  import inspect
  import sys
  from collections import OrderedDict
  from contextlib import contextmanager
  from typing import Tuple, Union
  import numpy
  import packaging
  from transformers.utils import is_torch_available
label_desc: Use image node_id 15 for calling a global function with example usage: requires_backends(obj, backends) without return types