class_docstr: `Indexer` will behave like the `LocIndexer` in Pandas
  
  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.
class_docstr_tok: ["`","Indexer","`","will","behave","like","the","`","LocIndexer","`","in","Pandas","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","."]
docstr: convert value-based indexing to integer-based indexing.
  
  Parameters
  ----------
  index : Index
      index data.
  indexing : slice
      value based indexing data with slice type for indexing.
  
  Returns
  -------
  slice:
      the integer based slicing
docstr_tok: ["convert","value-based","indexing","to","integer-based","indexing",".","Parameters","--","--","--","--","--","index",":","Index","index","data",".","indexing",":","slice","value","based","indexing","data","with","slice","type","for","indexing",".","Returns","--","--","--","-","slice",":","the","integer","based","slicing"]
code: def _slc_convert(self, index: Index, indexing: slice) -> slice:
      """
      convert value-based indexing to integer-based indexing.
  
      Parameters
      ----------
      index : Index
          index data.
      indexing : slice
          value based indexing data with slice type for indexing.
  
      Returns
      -------
      slice:
          the integer based slicing
      """
      if index.is_sorted():
          int_start = (
              None
              if indexing.start is None
              else bisect.bisect_left(index, indexing.start)
          )
          int_stop = (
              None
              if indexing.stop is None
              else bisect.bisect_right(index, indexing.stop)
          )
      else:
          int_start = (
              None
              if indexing.start is None
              else index.index(indexing.start)
          )
          int_stop = (
              None
              if indexing.stop is None
              else index.index(indexing.stop) + 1
          )
      return slice(int_start, int_stop)
  
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 3 for calling the LocIndexer obj's underlying member method code with example usage: obj._slc_convert(index, indexing) and returns: slice