def __init__(self, path, tags, link, hero_offset=None, note=''):
        self.path = path
        self.tags = tags
        self.hero_offset = ''
        self.link = link
        self.note = note
        self.link_name = link.get('name', link.get('code', ''))
        if hero_offset is not None:
            # default offset to 1 for video mime-types
            mime_guess = mimetypes.guess_type(path)[0]
            if mime_guess is not None and mime_guess.startswith('video'):
                self.hero_offset = '1'
        self.size = os.path.getsize(path)


################################################################################
# Commands
################################################################################
dataset/ETHPy150Open shotgunsoftware/pyqt-uploader/uploader.py/ShotgunFile.__init__/operator `is` -> `is not`