docs: def _expand_endpoint_name(endpoint_name, flags):
      """
      Populate any ``{endpoint_name}`` tags in the flag names for the given
      handler, based on the handlers module / file name.
      """
      return tuple(flag.format(endpoint_name=endpoint_name) for flag in flags)