def sample_questions(input_filepath: str, output_filepath: str, num_samples: int):
    """
    Samples a specified number of questions from the input JSON file and saves them to an output JSON file.

    Parameters:
    - input_filepath (str): Path to the original JSON file containing all questions.
    - output_filepath (str): Path to save the sampled questions JSON file.
    - num_samples (int): Number of questions to sample.
    """
    with open(input_filepath, 'r') as f:
        questions = json.load(f)

    # Sample questions
    sampled_questions = random.sample(questions, min(num_samples, len(questions)))

    # Save sampled questions to the output file
    with open(output_filepath, 'w') as f:
        json.dump(sampled_questions, f, indent=4)

    print(f"Saved {len(sampled_questions)} sampled questions to {output_filepath}")

    Samples a specified number of questions from the input JSON file and saves them to an output JSON file.

    Parameters:
    - input_filepath (str): Path to the original JSON file containing all questions.
    - output_filepath (str): Path to save the sampled questions JSON file.
    - num_samples (int): Number of questions to sample.
    
data/omegaPRM_v2/process_json.py