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__
      )
      if not all(
          BACKENDS_MAPPING[backend][0]() for backend in backends
      ):
          raise ImportError(
              "".join(
                  [
                      BACKENDS_MAPPING[backend][1].format(name)
                      for backend in backends
                  ]
              )
          )
  
imports: from typing import Any, BinaryIO, Dict, List, Optional, Tuple, Union
  import sys
  import os
  import logging
  import importlib.util
  from types import ModuleType
label_desc: Use image node_id 8 for calling a global function with example usage: requires_backends(obj, backends) without return types