def get_data_spec(model_instance=None, model_class=None):
 model_class = (model_class or model_instance.__class__)
 return MODEL_DATA_SPECS[model_class]

def get_data_spec ( model_instance = None , model_class = None ) : model_class = ( model_class or model_instance . __class__ ) return MODEL_DATA_SPECS [ model_class ]
returns the data specifications for the given network .