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: Add a **named** configuration entry to this ingredient/experiment.
  
  Can be called with a filename, a dictionary xor with keyword arguments.
  Supported formats for the config-file so far are: ``json``, ``pickle``
  and ``yaml``.
  
  The resulting dictionary will be converted into a
   :class:`~sacred.config_scope.ConfigDict`.
  
  See :ref:`named_configurations`
  
  :param name: name of the configuration
  :type name: str
  :param cfg_or_file: Configuration dictionary of filename of config file
                      to add to this ingredient/experiment.
  :type cfg_or_file: dict or str
  :param kw_conf: Configuration entries to be added to this
                  ingredient/experiment.
docstr_tok: ["Add","a","*","*","named","*","*","configuration","entry","to","this","ingredient\/experiment",".","Can","be","called","with","a","filename",",","a","dictionary","xor","with","keyword","arguments",".","Supported","formats","for","the","config-file","so","far","are",":","``","json","``",",","``","pickle","``","and","``","yaml","``",".","The","resulting","dictionary","will","be","converted","into","a",":","class",":","`","~sacred.config_scope.ConfigDict","`",".","See",":","ref",":","`","named_configurations","`",":","param","name",":","name","of","the","configuration",":","type","name",":","str",":","param","cfg_or_file",":","Configuration","dictionary","of","filename","of","config","file","to","add","to","this","ingredient\/experiment",".",":","type","cfg_or_file",":","dict","or","str",":","param","kw_conf",":","Configuration","entries","to","be","added","to","this","ingredient\/experiment","."]
code: def add_named_config(self, name, cfg_or_file=None, **kw_conf):
      """
      Add a **named** configuration entry to this ingredient/experiment.
  
      Can be called with a filename, a dictionary xor with keyword arguments.
      Supported formats for the config-file so far are: ``json``, ``pickle``
      and ``yaml``.
  
      The resulting dictionary will be converted into a
       :class:`~sacred.config_scope.ConfigDict`.
  
      See :ref:`named_configurations`
  
      :param name: name of the configuration
      :type name: str
      :param cfg_or_file: Configuration dictionary of filename of config file
                          to add to this ingredient/experiment.
      :type cfg_or_file: dict or str
      :param kw_conf: Configuration entries to be added to this
                      ingredient/experiment.
      """
      self._add_named_config(
          name, self._create_config_dict(cfg_or_file, kw_conf)
      )
  
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 12 for calling the Ingredient obj's underlying member method code with example usage: obj.add_named_config(name, cfg_or_file) without return types