class_docstr: Ingredients are reusable parts of experiments.
  
  Each Ingredient can have its own configuration (visible as an entry in the
  parents configuration), named configurations, captured functions and
  commands.
  
  Ingredients can themselves use ingredients.
docstr: Decorator to define a new command for this Ingredient or Experiment.
  
  The name of the command will be the name of the function. It can be
  called from the command-line or by using the run_command function.
  
  Commands are automatically also captured functions.
  
  The command can be given a prefix, to restrict its configuration space
  to a subtree. (see ``capture`` for more information)
  
  A command can be made unobserved (i.e. ignoring all observers) by
  passing the unobserved=True keyword argument.
docstr_tok: ["Decorator","to","define","a","new","command","for","this","Ingredient","or","Experiment",".","The","name","of","the","command","will","be","the","name","of","the","function",".","It","can","be","called","from","the","command-line","or","by","using","the","run_command","function",".","Commands","are","automatically","also","captured","functions",".","The","command","can","be","given","a","prefix",",","to","restrict","its","configuration","space","to","a","subtree",".","(","see","``","capture","``","for","more","information",")","A","command","can","be","made","unobserved","(","i.e",".","ignoring","all","observers",")","by","passing","the","unobserved=True","keyword","argument","."]
code: def command(self, function=None, prefix=None, unobserved=False):
      """
      Decorator to define a new command for this Ingredient or Experiment.
  
      The name of the command will be the name of the function. It can be
      called from the command-line or by using the run_command function.
  
      Commands are automatically also captured functions.
  
      The command can be given a prefix, to restrict its configuration space
      to a subtree. (see ``capture`` for more information)
  
      A command can be made unobserved (i.e. ignoring all observers) by
      passing the unobserved=True keyword argument.
      """
      captured_f = self.capture(function, prefix=prefix)
      captured_f.unobserved = unobserved
      self.commands[function.__name__] = captured_f
      return captured_f
  
imports: from typing import Generator, Tuple, Union
  import inspect
  import os.path
  from sacred.utils import PathType
  from typing import Sequence, Optional
  from collections import OrderedDict
  from sacred.config import ConfigDict, ConfigScope, create_captured_function, load_config_file
  from sacred.dependencies import PEP440_VERSION_PATTERN, PackageDependency, Source, gather_sources_and_dependencies
  from sacred.utils import CircularDependencyError, optional_kwargs_decorator, join_paths
label_desc: Use image node_id 5 for calling the Ingredient obj's underlying member method code with example usage: obj.command(function, prefix, unobserved) and returns: captured_f