code: def get_loc(self, key, method=None, tolerance=None):
      try:
          if np.all(np.isnan(key)) or is_bool(key):
              nan_idxs = self._nan_idxs
              try:
                  return nan_idxs.item()
              except (ValueError, IndexError):
                  # should only need to catch ValueError here but on numpy
                  # 1.7 .item() can raise IndexError when NaNs are present
                  if not len(nan_idxs):
                      raise KeyError(key)
                  return nan_idxs
      except (TypeError, NotImplementedError):
          pass
      return super(Float64Index, self).get_loc(
          key, method=method, tolerance=tolerance
      )
  
imports: import warnings
  import numpy
  from pandas._libs import index
  import pandas.compat
  from pandas.util._decorators import Appender, cache_readonly
  from pandas.core.dtypes.common import is_bool, is_bool_dtype, is_dtype_equal, is_extension_array_dtype, is_float, is_integer_dtype, is_scalar, needs_i8_conversion, pandas_dtype
  import pandas.core.dtypes.concat
  from pandas.core.dtypes.missing import isna
  from pandas.core import algorithms
  import pandas.core.common
  import pandas.core.indexes.base
  from pandas.core.indexes.base import Index, InvalidIndexError, _index_shared_docs
  from pandas.core.ops import get_op_result_name
label_desc: Use image node_id 9 for calling the Float64Index obj's underlying member method code with example usage: obj.get_loc(key, method, tolerance) and returns: super, nan_idxs, nan_idxs