code: def instantiate_backend(*args):
      """Select backend.
  
      Parameter
      ---------
      *args : Input arguments can be Backend instance or string or array or None
          Arguments used to define the backend instance.
  
      Returns
      -------
      backend : Backend instance
          The backend instance.
      """
      for arg in args:
          if isinstance(arg, Backend):
              return arg
          arg_string = (str(type(arg)) + str(arg)).lower()
          if "numpy" in arg_string:
              return Backend("numpy")
          if "torch" in arg_string:
              return Backend("pytorch")
      return Backend("numpy")
  
file_path: tslearn/tslearn/backend/backend.py
imports: from tslearn.backend.numpy_backend import NumPyBackend
label_desc: Use image node_id 1 for calling a global function with example usage: instantiate_backend() and returns: Backend, arg, Backend, Backend