code: def _has_imports(script, patterns):
      return any(
          any(re.match(p, name) for p in patterns)
          for name in script.imports
      )
  
imports: import os
  import re
  from guild import config
  from guild import op_util
  from guild import plugin
  from guild import python_util
  from guild import summary
  from .python_script import PythonScriptModelProxy
  from .python_script import PythonScriptOpdefSupport
label_desc: Use image node_id 1 for calling a global function with example usage: _has_imports(script, patterns) and returns: any