code: def iter_models(dirs=None, include_anonymous=False):
      dirs = dirs or []
      abs_dirs = [os.path.abspath(d) for d in dirs]
      for m in modellib.iter_models():
          if (m.modeldef.name or include_anonymous) and _match_dirs(
              m, abs_dirs
          ):
              yield m
  
file_path: guildai/guild/commands/models_impl.py
imports: import os
  from guild import cli
  from guild import cmd_impl_support
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import util
label_desc: Use image node_id 3 for calling a global function with example usage: iter_models(dirs, include_anonymous) without return types