def METHOD_NAME(self, name, args, description):
    """
    Returns a dictionary representation of the API element if valid, else
    returns None.
    """
    if name.endswith("__"):
        return None
    return {"name": name, "args": args, "description": description}