def METHOD_NAME(
    path: Union[str, pathlib.Path],
    feature_name: str,
    parameters: dict,
    starts_with: str = "hub://",
    token: Optional[str] = None,
    username: str = "public",
):
    """Helper function for generating humbug feature reports depending on the path"""
    if not deeplake_reporter.consent.check():
        return
    path = convert_pathlib_to_string_if_needed(path)
    if path.startswith(starts_with):
        parameters["Path"] = path
    token = token or read_token(from_env=True)
    if token is not None:
        username = jwt.decode(token, options={"verify_signature": False})["id"]
    set_username(username)
    deeplake_reporter.feature_report(
        feature_name=feature_name,
        parameters=parameters,
    )