code: def slice(seq, begin_index, end_index, name=""):
      """
      Slice the input sequence.
  
      Args:
          seq: sequence input tensor
          begin_index (`int`): the index along sequence axis where the slicing starts
          end_index (`int`): the index along sequence axis where the slicing ends
          name (`str`, optional): the name of the Function instance in the network
  
      See also:
          Indexing in NumPy: https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
  
      Returns:
          :class:`~cntk.ops.functions.Function`
  
      Todo:
          add an example
      """
      from cntk.cntk_py import sequence_slice
  
      seq = sanitize_input(seq, get_data_type(seq))
      return sequence_slice(seq, begin_index, end_index, name)
  
imports: import numpy
  from cntk.internal import typemap, sanitize_input
  from cntk.internal.utils import get_data_type
  from ...axis import Axis
  from ...default_options import default_override_or
label_desc: Use image node_id 9 for calling a global function with example usage: slice(seq, begin_index, end_index, name) and returns: sequence_slice