def METHOD_NAME(config_obj: "ModelConfig", training_set_metadata: Dict[str, Any]):
    # populate input features fields depending on data
    for input_feature in config_obj.input_features:
        feature = get_from_registry(input_feature.type, get_input_type_registry())
        feature.METHOD_NAME(input_feature, training_set_metadata[input_feature.name])
    # populate output features fields depending on data
    for output_feature in config_obj.output_features:
        feature = get_from_registry(output_feature.type, get_output_type_registry())
        feature.METHOD_NAME(output_feature, training_set_metadata[output_feature.name])