def METHOD_NAME(argv):
    parser = ArgumentParser()
    parser.add_argument("--name", help="Example name", required=True)
    parser.add_argument("-o", "--output", help="Path to the json file to save example metrics", required=True)
    args = parser.parse_args(args=argv)
    metrics = globals()[args.name]()
    with open(args.output, "w", encoding="utf8") as json_file:
        return json.dump(metrics, json_file)