def METHOD_NAME(request):
    """
    Provider state setup view needed by pact verifier.
    """
    provider_state_obj = ProviderState()
    state_setup_mapping = {
        'course metadata exists for course_id '
        'course-v1:edX+DemoX+Demo_Course': provider_state_obj.setup_course_metadata,
        'sequence metadata data exists for sequence_id block-v1:'
        'edX+DemoX+Demo_Course+type@sequential+block@basic_questions': provider_state_obj.setup_sequence_metadata,
    }
    request_body = json.loads(request.body)
    state = request_body.get('state')
    if state in state_setup_mapping:
        print('Setting up provider state for state value: {}'.format(state))
        state_setup_mapping[state](request)
    return JsonResponse({'result': state})