code: def test_add_source_file(ing):
      handle, f_name = tempfile.mkstemp(suffix=".py")
      f = os.fdopen(handle, "w")
      f.write("print('Hello World')")
      f.close()
      ing.add_source_file(f_name)
      assert Source.create(f_name) in ing.sources
      os.remove(f_name)
  
imports: import os
  import pytest
  import tempfile
  from sacred.config import ConfigScope, ConfigDict
  from sacred.dependencies import Source, PackageDependency
  from sacred.experiment import Experiment
  from sacred.ingredient import Ingredient
  from sacred.utils import CircularDependencyError
  from sacred.serializer import json
label_desc: Use image node_id 24 for calling a global function with example usage: test_add_source_file(ing) without return types