class_docstr: The central class for each experiment in Sacred.
  
  It manages the configuration, the main function, captured methods,
  observers, commands, and further ingredients.
  
  An Experiment instance should be created as one of the first
  things in any experiment-file.
class_docstr_tok: ["The","central","class","for","each","experiment","in","Sacred",".","It","manages","the","configuration",",","the","main","function",",","captured","methods",",","observers",",","commands",",","and","further","ingredients",".","An","Experiment","instance","should","be","created","as","one","of","the","first","things","in","any","experiment-file","."]
docstr: Add a new measurement.
  
  The measurement will be processed by the MongoDB* observer
  during a heartbeat event.
  Other observers are not yet supported.
  
  
  Parameters
  ----------
  name
      The name of the metric, e.g. training.loss
  value
      The measured value
  step
      The step number (integer), e.g. the iteration number
      If not specified, an internal counter for each metric
      is used, incremented by one.
code: def log_scalar(
      self, name: str, value: float, step: Optional[int] = None
  ) -> None:
      """
      Add a new measurement.
  
      The measurement will be processed by the MongoDB* observer
      during a heartbeat event.
      Other observers are not yet supported.
  
  
      Parameters
      ----------
      name
          The name of the metric, e.g. training.loss
      value
          The measured value
      step
          The step number (integer), e.g. the iteration number
          If not specified, an internal counter for each metric
          is used, incremented by one.
      """
      # Method added in change https://github.com/chovanecm/sacred/issues/4
      # The same as Run.log_scalar
      self.current_run.log_scalar(name, value, step)
  
imports: import inspect
  import os.path
  import sys
  import warnings
  from collections import OrderedDict
  from typing import Sequence, Optional, List
  from docopt import docopt, printable_usage
  from sacred import SETTINGS
  from sacred.arg_parser import format_usage, get_config_updates
  from sacred import commandline_options
  from sacred.commandline_options import CLIOption
  from sacred.commands import help_for_command, print_config, print_dependencies, save_config, print_named_configs
  from sacred.observers.file_storage import file_storage_option
  from sacred.observers.s3_observer import s3_option
  from sacred.config.signature import Signature
  from sacred.ingredient import Ingredient
  from sacred.initialize import create_run
  from sacred.observers.sql import sql_option
  from sacred.observers.tinydb_hashfs import tiny_db_option
  from sacred.run import Run
  from sacred.host_info import check_additional_host_info, HostInfoGetter
  from sacred.utils import print_filtered_stacktrace, ensure_wellformed_argv, SacredError, format_sacred_error, PathType, get_inheritors
  from sacred.observers.mongo import mongo_db_option
label_desc: Use image node_id 12 for calling the Experiment obj's underlying member method code with example usage: obj.log_scalar(name, value, step) without return types