class_docstr: This is for indexing(rows or columns)
  
  Read-only operations has higher priorities than others.
  So this class is designed in a **read-only** way to shared data for queries.
  Modifications will results in new Index.
  
  NOTE: the indexing has following flaws
  - duplicated index value is not well supported (only the first appearance will be considered)
  - The order of the index is not considered!!!! So the slicing will not behave like pandas when indexings are ordered
class_docstr_tok: ["This","is","for","indexing","(","rows","or","columns",")","Read-only","operations","has","higher","priorities","than","others",".","So","this","class","is","designed","in","a","*","*","read-only","*","*","way","to","shared","data","for","queries",".","Modifications","will","results","in","new","Index",".","NOTE",":","the","indexing","has","following","flaws","-","duplicated","index","value","is","not","well","supported","(","only","the","first","appearance","will","be","considered",")","-","The","order","of","the","index","is","not","considered","!","!","!","!","So","the","slicing","will","not","behave","like","pandas","when","indexings","are","ordered"]
docstr: Given the index value, get the integer index
  
  Parameters
  ----------
  item :
      The item to query
  
  Returns
  -------
  int:
      The index of the item
  
  Raises
  ------
  KeyError:
      If the query item does not exist
docstr_tok: ["Given","the","index","value",",","get","the","integer","index","Parameters","--","--","--","--","--","item",":","The","item","to","query","Returns","--","--","--","-","int",":","The","index","of","the","item","Raises","--","--","--","KeyError",":","If","the","query","item","does","not","exist"]
code: def index(self, item) -> int:
      """
      Given the index value, get the integer index
  
      Parameters
      ----------
      item :
          The item to query
  
      Returns
      -------
      int:
          The index of the item
  
      Raises
      ------
      KeyError:
          If the query item does not exist
      """
      try:
          return self.index_map[self._convert_type(item)]
      except IndexError as index_e:
          raise KeyError(
              f"{item} can't be found in {self}"
          ) from index_e
  
imports: from __future__ import annotations
  from typing import Dict, Tuple, Union, Callable, List
  import bisect
  import numpy
  import pandas
label_desc: Use image node_id 4 for calling the Index obj's underlying member method code with example usage: obj.index(item) and returns: self