code: def _iter_project_names(pkgs):
      for pkg in pkgs:
          try:
              ns, name = namespace.split_name(pkg)
          except namespace.NamespaceError:
              log.warning("unknown namespace in '%s' - ignoring", pkg)
          else:
              yield ns.pip_info(name).project_name, pkg
  
file_path: guildai/guild/commands/packages_impl.py
imports: import logging
  import os
  import re
  from guild import cli
  from guild import namespace
  from guild import pip_util
  from guild import util
label_desc: Use image node_id 12 for calling a global function with example usage: _iter_project_names(pkgs) without return types