def METHOD_NAME():
    """
    This builds the table of names for the docstring (and the docs)
    NOTE: it could use some fancier rst formatting ...
    """
    table = []
    for env_obj, names in nc_names.items():
        table.append(f"\n\n**{env_obj:}**\n")
        try:  # some are dicts, some are lists ...
            for var, var_names in names['default_names'].items():
                table.append(f"\n Default Names for {var}: {', '.join(var_names)}\n")
        except AttributeError:
            table.append(f"\n  Default Names: {', '.join(names['default_names'])}\n")
        table.append('\n')
        try:  # some are dicts, some are lists ...
            for var, var_names in names['cf_names'].items():
                table.append(f"\n CF Standard Names for {var}: {', '.join(var_names)}\n")
        except AttributeError:
            table.append(f"\n  CF Standard Names: {', '.join(names['cf_names'])}\n")
    return ''.join(table)