code: def test_algo_examples(filepath):
      """Test algo examples.
  
      Args:
          filepath (str): path string of example
  
      """
      env = os.environ.copy()
      env["GARAGE_EXAMPLE_TEST_N_EPOCHS"] = "1"
      # Don't use check=True, since that causes subprocess to throw an error
      # in case of failure before the assertion is evaluated
      assert (
          subprocess.run([filepath], check=False, env=env).returncode
          == 0
      )
  
imports: import os
  import pathlib
  import subprocess
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_algo_examples(filepath) without return types