code: def select_backend(data):
      """Select backend.
  
      Parameter
      ---------
      data : array-like or string or None
          Indicates the backend to choose.
          Optional, default equals None.
  
      Returns
      -------
      backend : class
          The backend class.
          If data is a Numpy array or data equals 'numpy' or data is None,
          backend equals NumpyBackend().
          If data is a PyTorch array or data equals 'pytorch',
          backend equals PytorchBackend().
      """
      arg_string = (str(type(data)) + str(data)).lower()
      if "torch" in arg_string:
          return PyTorchBackend()
      return NumPyBackend()
  
file_path: tslearn/tslearn/backend/backend.py
imports: from tslearn.backend.numpy_backend import NumPyBackend
label_desc: Use image node_id 2 for calling a global function with example usage: select_backend(data) and returns: NumPyBackend, PyTorchBackend