class_docstr: Represent and manage a single run of an experiment.
class_docstr_tok: ["Represent","and","manage","a","single","run","of","an","experiment","."]
docstr: Add a file as a resource.
  
  In Sacred terminology a resource is a file that the experiment needed
  to access during a run. In case of a MongoObserver that means making
  sure the file is stored in the database (but avoiding duplicates) along
  its path and md5 sum.
  
  See also :py:meth:`sacred.Experiment.add_resource`.
  
  Parameters
  ----------
  filename : str
      name of the file to be stored as a resource
docstr_tok: ["Add","a","file","as","a","resource",".","In","Sacred","terminology","a","resource","is","a","file","that","the","experiment","needed","to","access","during","a","run",".","In","case","of","a","MongoObserver","that","means","making","sure","the","file","is","stored","in","the","database","(","but","avoiding","duplicates",")","along","its","path","and","md5","sum",".","See","also",":","py",":","meth",":","`","sacred.Experiment.add_resource","`",".","Parameters","--","--","--","--","--","filename",":","str","name","of","the","file","to","be","stored","as","a","resource"]
code: def add_resource(self, filename):
      """Add a file as a resource.
  
      In Sacred terminology a resource is a file that the experiment needed
      to access during a run. In case of a MongoObserver that means making
      sure the file is stored in the database (but avoiding duplicates) along
      its path and md5 sum.
  
      See also :py:meth:`sacred.Experiment.add_resource`.
  
      Parameters
      ----------
      filename : str
          name of the file to be stored as a resource
      """
      filename = os.path.abspath(filename)
      self._emit_resource_added(filename)
  
imports: import datetime
  import os.path
  import sys
  import traceback
  from sacred import metrics_logger, SETTINGS
  from sacred.metrics_logger import linearize_metrics
  from sacred.randomness import set_global_seed
  from sacred.utils import SacredInterrupt, join_paths, IntervalTimer
  from sacred.stdout_capturing import get_stdcapturer
label_desc: Use image node_id 3 for calling the Run obj's underlying member method code with example usage: obj.add_resource(filename) without return types