code: def get_ref(dest_dir, md5):
      
      ref = {}
      ref['id'] = md5
      ref['encode'] = 'BigEndian' if sys.byteorder == 'big' else 'LittleEndian'
      ref['basepath'] = dest_dir
      return ref
docs: Get reference