code: def run():
      config = {
          "a": 17,
          "foo": {"bar": True, "baz": False},
          "seed": 1234,
      }
      config_mod = ConfigSummary()
      signature = mock.Mock()
      signature.name = "main_func"
      main_func = mock.Mock(
          return_value=123, prefix="", signature=signature
      )
      logger = mock.Mock()
      observer = [mock.Mock(priority=10)]
      return Run(
          config,
          config_mod,
          main_func,
          observer,
          logger,
          logger,
          {},
          {},
          [],
          [],
      )
  
imports: from datetime import datetime
  import mock
  import os
  import pytest
  import tempfile
  import sys
  from sacred.run import Run
  from sacred.config.config_summary import ConfigSummary
  from sacred.utils import ObserverError, SacredInterrupt, TimeoutInterrupt, apply_backspaces_and_linefeeds
label_desc: Use image node_id 1 for calling a global function with example usage: run() and returns: Run