code: def threaded(fn):
      """Call a function using a thread.
  
      Parameters
      ----------
      fn : callable
          Callable object.
  
      Returns
      -------
      function
          Wrapped function.
  
      """
  
      def wrapper(*args, **kwargs):  # numpydoc ignore=GL08
          thread = threading.Thread(target=fn, args=args, kwargs=kwargs)
          thread.start()
          return thread
  
      return wrapper
  
imports: from collections.abc import Sequence
  import enum
  from functools import lru_cache
  import importlib
  import sys
  import threading
  import traceback
  from typing import Type, TypeVar, Union
  import warnings
  import numpy
  from .._typing_core import Vector
label_desc: Use image node_id 6 for calling a global function with example usage: threaded(fn) and returns: wrapper, thread