def METHOD_NAME(self, index, sample_to_send):
    if len(self.model_object_name_kwargs) == 0:
        return self.model_object(sample_to_send)
    else:
        return self.model_object(sample_to_send, **self.model_object_name_kwargs)