def __call__(self, instance, full_filename):
        full_filename = six.text_type(full_filename)
        file_info = self.get_file_info(full_filename)
        self.validate_file_info(file_info)
        return self.generate_file_name(instance, file_info)


# Shortcut for UploadTo class
:param instance: model instance which the file is uploaded for
dataset/ETHPy150Open rewardz/django_model_helpers/model_helpers.py/UploadTo.__call__