def check(self, profile_data, training_metadata=[]):
        """Use the api to check weither the profile_data are valid."""
        data = {
            "profile_json": _validate_dict(profile_data, "profile_data"),
            "training_metadata": _validate_training_metadata(training_metadata),
        }
        response = self.client.post("profile/json/check", data=data)
        return response.json()
def check ( self , profile_data , training_metadata = [ ] ) : data = { "profile_json" : _validate_dict ( profile_data , "profile_data" ) , "training_metadata" : _validate_training_metadata ( training_metadata ) , } response = self . client . post ( "profile/json/check" , data = data ) return response . json ( )
Use the api to check weither the profile_data are valid.