def instantiate_descriptor(**field_data):
 system = get_test_descriptor_system()
 course_key = SlashSeparatedCourseKey('org', 'course', 'run')
 usage_key = course_key.make_usage_key('video', 'SampleProblem')
 return system.construct_xblock_from_class(VideoDescriptor, scope_ids=ScopeIds(None, None, usage_key, usage_key), field_data=DictFieldData(field_data))

def instantiate_descriptor ( ** field_data ) : system = get_test_descriptor_system ( ) course_key = SlashSeparatedCourseKey ( 'org' , 'course' , 'run' ) usage_key = course_key . make_usage_key ( 'video' , 'SampleProblem' ) return system . construct_xblock_from_class ( VideoDescriptor , scope_ids = ScopeIds ( None , None , usage_key , usage_key ) , field_data = DictFieldData ( field_data ) )
instantiate descriptor with most properties .