[docs]@singledispatchdefsubset_sequence(x:Any,indices:Sequence[int])->Any:""" Subset ``x`` by ``indices`` to obtain a new object. The default method attempts to use ``x``'s ``__getitem__`` method. Args: x: Any object that supports ``__getitem__`` with an integer sequence. indices: Sequence of non-negative integers specifying the integers of interest. Returns: The result of slicing ``x`` by ``indices``. The exact type depends on what ``x``'s ``__getitem__`` method returns. """returnx[indices]