import time


def non_existent_random_json_file_fixture(tmp_path):
    """Pytest fixture which returns a non-existent random json file within a temporary directory

    Args:
        tmp_path : Built in Pytest fixture.

    Returns:
        PosixPath: of the non-existent random json file.
    """
    random_file = tmp_path / f"{str(time.time_ns())}.json"
    return random_file