def METHOD_NAME(measure_def):
    end_date = ImportLog.objects.latest_in_category("prescribing").current_at
    start_date = end_date - relativedelta(years=5)
    command = ImportMeasuresCommand()
    command.check_definitions([measure_def], start_date, end_date, verbose=False)
    command.build_measures(
        [measure_def],
        start_date,
        end_date,
        verbose=False,
        options={
            "measure": measure_def["id"],
            "definitions_only": False,
            "bigquery_only": False,
        },
    )