'@param filepath: [str] The path to the evaluated file.
@param load_size: [int] The size of the file block load in RAM (in
bytes).'

def _looks_like_biom(self, filepath, load_size=50000):

    is_biom = False
    segment_size = int((load_size / 2))
    try:
        with open(filepath, 'r') as fh:
            prev_str = ''
            segment_str = fh.read(segment_size)
            if segment_str.strip().startswith('{'):
                while segment_str:
                    current_str = (prev_str + segment_str)
                    if ('"format"' in current_str):
                        current_str = re.sub('\\s', '', current_str)
                        if ('"format":"BiologicalObservationMatrix' in current_str):
                            is_biom = True
                            break
                    prev_str = segment_str
                    segment_str = fh.read(segment_size)
    except Exception:
        pass
    return is_biom
