code: def models_iter_dirs(args):
      cwd = config.cwd()
      if not args.installed and guildfile.is_guildfile_dir(cwd):
          return [cwd]
      return []
  
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 2 for calling a global function with example usage: models_iter_dirs(args) and returns: list, list