code: def for_project_name(project_name):
      ns = None
      for _name, maybe_ns in iter_namespaces():
          membership = maybe_ns.project_name_membership(project_name)
          if membership == Membership.yes:
              ns = maybe_ns
              break
          if membership == Membership.maybe:
              ns = maybe_ns
      assert ns, project_name
      return ns
  
imports: import re
  from collections import namedtuple
  import guild
  from guild.entry_point_util import EntryPointResources
label_desc: Use image node_id 3 for calling a global function with example usage: for_project_name(project_name) and returns: ns