code: def dispatch_sparse(func):
      @functools.wraps(
          func,
          assigned=(
              "__name__",
              "__qualname__",
              "__doc__",
              "__annotations__",
          ),
      )
      def inner(*args, **kwargs):
          with sparse_context():
              return func(*args, **kwargs)
  
      return inner
  
file_path: tensorly/tensorly/contrib/sparse/backend/__init__.py
imports: import importlib
  from contextlib import contextmanager
  import functools
  from ....backend import backend_context, get_backend
  from ....None import backend, base, cp_tensor, tucker_tensor, tt_tensor
label_desc: Use image node_id 5 for calling a global function with example usage: dispatch_sparse(func) and returns: inner, func