code: def get_args(cls, dist, header=None):
          
          if header is None:
              header = cls.get_header()
          spec = str(dist.as_requirement())
          for type_ in 'console', 'gui':
              group = type_ + '_scripts'
              for name, ep in dist.get_entry_map(group).items():
                  cls._ensure_safe_name(name)
                  script_text = cls.template % locals()
                  args = cls._get_script_args(type_, name, header, script_text)
                  for res in args:
                      yield res
docs: Yield write_script() argument tuples for a distribution's
          console_scripts and gui_scripts entry points.