parameters: (blobfp, sensor_map, threshold_map)
return_statement: return readers[version](blobfp, sensor_map, threshold_map)
docstring: Examine the version field of the blob header to determine
         the correct version of blob_reader to retrieve.
docstring_summary: Examine the version field of the blob header to determine
         the correct version of blob_reader to retrieve.
docstring_tokens: Examine the version field of the blob header to determine the correct version of blob_reader to retrieve .
function: def get_blob_reader(blobfp, sensor_map, threshold_map):
      """Examine the version field of the blob header to determine
         the correct version of blob_reader to retrieve."""
      readers = {0: blob_reader_v0}
  
      raw_hdr = blobfp.read(BLOB_HEADER_SIZE)
      blobfp.seek(0, os.SEEK_SET)
  
      blob_hdr = struct.unpack('<IIIII', raw_hdr)
      version = blob_hdr[1]
  
      if version not in readers:
          LOG.error(f'blob version {version} is not '
                    f'supported by this version of the script.')
          return None
  
      return readers[version](blobfp, sensor_map, threshold_map)
function_tokens: def get_blob_reader ( blobfp , sensor_map , threshold_map ) : readers = { 0 : blob_reader_v0 } raw_hdr = blobfp . read ( BLOB_HEADER_SIZE ) blobfp . seek ( 0 , os . SEEK_SET ) blob_hdr = struct . unpack ( '<IIIII' , raw_hdr ) version = blob_hdr [ 1 ] if version not in readers : LOG . error ( f'blob version {version} is not ' f'supported by this version of the script.' ) return None return readers [ version ] ( blobfp , sensor_map , threshold_map )