def METHOD_NAME(self, instance):
    try:
        return instance.data.file_size
    except AttributeError:
        print("This solution has no data associated with it...might be a test")
        return None