def METHOD_NAME(item: Any, challenge_data: dict[str, Any]) -> None:
    run_time = dict(item.user_properties).get("run_time")
    info_details = getattr(item, "info_details", {})
    test_name = getattr(item, "test_name", "")
    if info_details and test_name:
        if run_time is not None:
            cost = None
            if "--mock" not in sys.argv and os.environ.get("HELICONE_API_KEY"):
                print("Getting cost from Helicone")
                cost = get_data_from_helicone(test_name)
            info_details["metrics"]["cost"] = cost
            if info_details["metrics"].get("success", None) is None:
                info_details["metrics"]["attempted"] = False
                info_details["metrics"]["success"] = False
            elif (
                info_details["metrics"].get("success") is False
                and "attempted" not in info_details["metrics"]
            ):
                info_details["metrics"]["attempted"] = False
            info_details["metrics"]["run_time"] = f"{str(round(run_time, 3))} seconds"
            info_details["reached_cutoff"] = float(run_time) > challenge_data["cutoff"]
            if "--mock" not in sys.argv:
                update_challenges_already_beaten(info_details, test_name)
                if info_details.get("tests") is not None:
                    for nested_test_name, nested_test_info in info_details[
                        "tests"
                    ].items():
                        update_challenges_already_beaten(
                            nested_test_info, nested_test_name
                        )
        INFO_MANAGER.add_test(test_name, info_details)