code: def test_unobserved_run_doesnt_emit(run):
      observer = run.observers[0]
      run.unobserved = True
      run()
      assert not observer.started_event.called
      assert not observer.heartbeat_event.called
      assert not observer.completed_event.called
      assert not observer.interrupted_event.called
      assert not observer.failed_event.called
  
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 19 for calling a global function with example usage: test_unobserved_run_doesnt_emit(run) without return types