def METHOD_NAME(
    consent: bool, client_id: Optional[str] = None, username: Optional[str] = None
) -> Dict[str, Any]:
    """Modify reporting config.
    Args:
        consent (bool): Enabling and disabling sending crashes and system report to Activeloop Hub.
        client_id (str, optional): Unique client id.
        username (str, optional): Activeloop username.
    Returns:
        The configuration that it just saved.
    """
    reporting_config = {}
    if os.path.isfile(REPORTING_CONFIG_FILE_PATH):
        try:
            with open(REPORTING_CONFIG_FILE_PATH, "r") as ifp:
                reporting_config = json.load(ifp)
        except Exception:
            pass
    else:
        # We should not expect that the parent directory for the reporting configuration will exist.
        # If it doesn't exist, we create the directory, if possible.
        # This mirrors the code for the `write_token` method in /deeplake/client/utils.py.
        path = Path(REPORTING_CONFIG_FILE_PATH)
        os.makedirs(path.parent, exist_ok=True)
    if client_id is not None and reporting_config.get("client_id") is None:
        reporting_config["client_id"] = client_id
    if reporting_config.get("client_id") is None:
        reporting_config["client_id"] = str(uuid.uuid4())
    if username is not None:
        reporting_config["username"] = username
    reporting_config["consent"] = consent
    try:
        with open(REPORTING_CONFIG_FILE_PATH, "w") as ofp:
            json.dump(reporting_config, ofp)
    except Exception:
        pass
    return reporting_config