code: def check_undefined(var_names):
      "check whether the global var names are not defined"
      l = get_callers_locals()
      for v in var_names:
          assert v not in l, f"var {v} should not exist in locals()"
  
imports: import numpy
  import torch
  import re, gc
  from math import isclose
  import inspect
label_desc: Use image node_id 9 for calling a global function with example usage: check_undefined(var_names) without return types