code: def test_log_code_custom_root(wandb_init):
      run = wandb_init(mode="offline")
      with open("test.py", "w") as f:
          f.write('print("test")')
      os.mkdir("custom")
      os.chdir("custom")
      with open("test.py", "w") as f:
          f.write('print("test")')
      art = run.log_code(root="../")
      assert sorted(art.manifest.entries.keys()) == [
          "custom/test.py",
          "test.py",
      ]
      run.finish()
  
imports: import json
  import os
  import pickle
  import sys
  import numpy
  import pytest
  import wandb
  from wandb import wandb_sdk
  from wandb.errors import UsageError
label_desc: Use image node_id 3 for calling a global function with example usage: test_log_code_custom_root(wandb_init) without return types