code: def test_meta_probe(
      relay_server,
      meta,
      mock_run,
      send_manager,
      record_q,
      user,
      monkeypatch,
  ):
      orig_exists = os.path.exists
      orig_call = subprocess.call
      monkeypatch.setattr(
          os.path,
          "exists",
          lambda path: True
          if "conda-meta" in path
          else orig_exists(path),
      )
      monkeypatch.setattr(
          subprocess,
          "call",
          lambda cmd, **kwargs: kwargs["stdout"].write("CONDA YAML")
          if "conda" in cmd
          else orig_call(cmd, **kwargs),
      )
      with open("README", "w") as f:
          f.write("Testing")
      with relay_server() as relay:
          run = mock_run(
              use_magic_mock=True, settings={"save_code": True}
          )
          meta = meta(run.settings)
          sm = send_manager(run, meta)
          data = meta.probe()
          meta.publish(data)
          sm.send(record_q.get())
          sm.finish()
  
      uploaded_files = relay.context.get_run_uploaded_files(run.id)
      assert sorted(uploaded_files) == sorted(
          [
              "wandb-metadata.json",
              "config.yaml",
              "diff.patch",
              "conda-environment.yaml",
          ]
      )
  
imports: import os
  import platform
  import queue
  import subprocess
  import unittest.mock
  import pytest
  import wandb
  from wandb.sdk.interface.interface_queue import InterfaceQueue
  from wandb.sdk.internal import context
  from wandb.sdk.internal.sender import SendManager
  from wandb.sdk.internal.system.system_info import SystemInfo
label_desc: Use image node_id 6 for calling a global function with example usage: test_meta_probe(relay_server, meta, mock_run, send_manager, record_q, user, monkeypatch) without return types