docs: def execute(self, input_data):
          ''' This worker computes meta data for any file type. '''
          raw_bytes = input_data['sample']['raw_bytes']
          self.meta['md5'] = hashlib.md5(raw_bytes).hexdigest()
          self.meta['tags'] = input_data['tags']['tags']
          self.meta['type_tag'] = input_data['sample']['type_tag']
          with magic.Magic() as mag:
              self.meta['file_type'] = mag.id_buffer(raw_bytes[:1024])
          with magic.Magic(flags=magic.MAGIC_MIME_TYPE) as mag:
              self.meta['mime_type'] = mag.id_buffer(raw_bytes[:1024])
          with magic.Magic(flags=magic.MAGIC_MIME_ENCODING) as mag:
              try:
                  self.meta['encoding'] = mag.id_buffer(raw_bytes[:1024])
              except magic.MagicError:
                  self.meta['encoding'] = 'unknown'
          self.meta['file_size'] = len(raw_bytes)
          self.meta['filename'] = input_data['sample']['filename']
          self.meta['import_time'] = input_data['sample']['import_time']
          self.meta['customer'] = input_data['sample']['customer']
          self.meta['length'] = input_data['sample']['length']
  
          return self.meta