code: def mock_ml_package_versions_yml(src_base, src_ref):
      with tempfile.TemporaryDirectory() as tmp_dir:
          yml_base = Path(tmp_dir).joinpath("base.yml")
          yml_ref = Path(tmp_dir).joinpath("ref.yml")
          yml_base.write_text(src_base)
          yml_ref.write_text(src_ref)
          yield [
              "--versions-yaml",
              str(yml_base),
              "--ref-versions-yaml",
              str(yml_ref),
          ]
  
imports: import functools
  import re
  import tempfile
  from contextlib import contextmanager
  from pathlib import Path
  from unittest import mock
  import pytest
  from dev.set_matrix import generate_matrix
label_desc: Use image node_id 2 for calling a global function with example usage: mock_ml_package_versions_yml(src_base, src_ref) without return types