code: def create_captured_function(function, prefix=None):
      sig = Signature(function)
      function.signature = sig
      function.uses_randomness = (
          "_seed" in sig.arguments or "_rnd" in sig.arguments
      )
      function.logger = None
      function.config = {}
      function.rnd = None
      function.run = None
      function.prefix = prefix
      return captured_function(function)
  
file_path: sacred/sacred/config/captured_function.py
imports: import time
  from datetime import timedelta
  import wrapt
  from sacred.config.custom_containers import fallback_dict
  from sacred.config.signature import Signature
  from sacred.randomness import create_rnd, get_seed
  from sacred.utils import ConfigError
label_desc: Use image node_id 1 for calling a global function with example usage: create_captured_function(function, prefix) and returns: captured_function