class_docstr: Immutable ndarray of timedelta64 data, represented internally as int64, and
  which can be boxed to timedelta objects
  
  Parameters
  ----------
  data  : array-like (1-dimensional), optional
      Optional timedelta-like data to construct index with
  unit : unit of the arg (D,h,m,s,ms,us,ns) denote the unit, optional
      which is an integer/float number
  freq : string or pandas offset object, optional
      One of pandas date offset strings or corresponding objects. The string
      'infer' can be passed in order to set the frequency of the index as the
      inferred frequency upon creation
  copy  : bool
      Make a copy of input ndarray
  start : starting value, timedelta-like, optional
      If data is None, start is used as the start point in generating regular
      timedelta data.
  
      .. deprecated:: 0.24.0
  
  periods  : int, optional, > 0
      Number of periods to generate, if generating index. Takes precedence
      over end argument
  
      .. deprecated:: 0.24.0
  
  end : end time, timedelta-like, optional
      If periods is none, generated index will extend to first conforming
      time on or just past end argument
  
      .. deprecated:: 0.24. 0
  
  closed : string or None, default None
      Make the interval closed with respect to the given frequency to
      the 'left', 'right', or both sides (None)
  
      .. deprecated:: 0.24. 0
  
  name : object
      Name to be stored in the index
  
  Attributes
  ----------
  days
  seconds
  microseconds
  nanoseconds
  components
  inferred_freq
  
  Methods
  -------
  to_pytimedelta
  to_series
  round
  floor
  ceil
  to_frame
  
  See Also
  ---------
  Index : The base pandas Index type.
  Timedelta : Represents a duration between two dates or times.
  DatetimeIndex : Index of datetime64 data.
  PeriodIndex : Index of Period data.
  timedelta_range : Create a fixed-frequency TimedeltaIndex.
  
  Notes
  -----
  To learn more about the frequency strings, please see `this link
  <http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
  
  Creating a TimedeltaIndex based on `start`, `periods`, and `end` has
  been deprecated in favor of :func:`timedelta_range`.
class_docstr_tok: ["Immutable","ndarray","of","timedelta64","data",",","represented","internally","as","int64",",","and","which","can","be","boxed","to","timedelta","objects","Parameters","--","--","--","--","--","data",":","array-like","(","1-dimensional",")",",","optional","Optional","timedelta-like","data","to","construct","index","with","unit",":","unit","of","the","arg","(","D",",","h",",","m",",","s",",","ms",",","us",",","ns",")","denote","the","unit",",","optional","which","is","an","integer\/float","number","freq",":","string","or","pandas","offset","object",",","optional","One","of","pandas","date","offset","strings","or","corresponding","objects",".","The","string","'infer","'","can","be","passed","in","order","to","set","the","frequency","of","the","index","as","the","inferred","frequency","upon","creation","copy",":","bool","Make","a","copy","of","input","ndarray","start",":","starting","value",",","timedelta-like",",","optional","If","data","is","None",",","start","is","used","as","the","start","point","in","generating","regular","timedelta","data",".","..","deprecated",":",":","0.24.0","periods",":","int",",","optional",",",">","0","Number","of","periods","to","generate",",","if","generating","index",".","Takes","precedence","over","end","argument","..","deprecated",":",":","0.24.0","end",":","end","time",",","timedelta-like",",","optional","If","periods","is","none",",","generated","index","will","extend","to","first","conforming","time","on","or","just","past","end","argument","..","deprecated",":",":","0.24",".","0","closed",":","string","or","None",",","default","None","Make","the","interval","closed","with","respect","to","the","given","frequency","to","the","'left","'",",","'right","'",",","or","both","sides","(","None",")","..","deprecated",":",":","0.24",".","0","name",":","object","Name","to","be","stored","in","the","index","Attributes","--","--","--","--","--","days","seconds","microseconds","nanoseconds","components","inferred_freq","Methods","--","--","--","-","to_pytimedelta","to_series","round","floor","ceil","to_frame","See","Also","--","--","--","--","-","Index",":","The","base","pandas","Index","type",".","Timedelta",":","Represents","a","duration","between","two","dates","or","times",".","DatetimeIndex",":","Index","of","datetime64","data",".","PeriodIndex",":","Index","of","Period","data",".","timedelta_range",":","Create","a","fixed-frequency","TimedeltaIndex",".","Notes","--","--","-","To","learn","more","about","the","frequency","strings",",","please","see","`","this","link","<","http",":","\/\/pandas.pydata.org\/pandas-docs\/stable\/timeseries.html","#","offset-aliases",">","`","__",".","Creating","a","TimedeltaIndex","based","on","`","start","`",",","`","periods","`",",","and","`","end","`","has","been","deprecated","in","favor","of",":","func",":","`","timedelta_range","`","."]
code: def _get_string_slice(self, key):
      if is_integer(key) or is_float(key) or key is NaT:
          self._invalid_indexer("slice", key)
      loc = self._partial_td_slice(key)
      return loc
  
imports: from datetime import datetime
  import warnings
  import numpy
  from pandas._libs import NaT, Timedelta, index, join, lib
  import pandas.compat
  from pandas.util._decorators import Appender, Substitution
  from pandas.core.dtypes.common import _TD_DTYPE, ensure_int64, is_float, is_integer, is_list_like, is_scalar, is_timedelta64_dtype, is_timedelta64_ns_dtype, pandas_dtype
  import pandas.core.dtypes.concat
  from pandas.core.dtypes.missing import isna
  from pandas.core.accessor import delegate_names
  from pandas.core.arrays import datetimelike
  from pandas.core.arrays.timedeltas import TimedeltaArray, _is_convertible_to_td
  from pandas.core.base import _shared_docs
  import pandas.core.common
  from pandas.core.indexes.base import Index, _index_shared_docs
  from pandas.core.indexes.datetimelike import DatetimeIndexOpsMixin, DatetimelikeDelegateMixin, maybe_unwrap_index, wrap_arithmetic_op
  from pandas.core.indexes.numeric import Int64Index
  from pandas.core.ops import get_op_result_name
  from pandas.tseries.frequencies import to_offset
label_desc: Use image node_id 22 for calling the TimedeltaIndex obj's underlying member method code with example usage: obj._get_string_slice(key) and returns: loc