def find_type_idx(self, class_str_idx):
    types = self.get_type_ids()
    i = bisect.bisect_left(types, class_str_idx)
    if ((i != len(types)) and (types[i] == class_str_idx)):
        return i
    return (- 1)
def find_type_idx(self, class_str_idx):
    types = self.get_type_ids()
    i = bisect.bisect_left(types, class_str_idx)
    if ((i != len(types)) and (types[i] == class_str_idx)):
        return i
    return (- 1)