code: def _module_menu_entry(module, environment_name):
      
      name = _module_name_for_display(module)
      if isinstance(module, dict):
          environment_config = module.get('environments', {}).get(environment_name)
          if environment_config:
              return "%s (%s)" % (name, environment_config)
      return "%s" % (name)
docs: Build a string to display in the 'select module' menu.