code: def is_first(seq, name=""):
      """
      Returns a symbolic sequence of booleans with the same length as ``seq``. The
      first element of the sequence is 1 and all others are 0.
  
      Example:
          >>> x = C.sequence.input_variable(shape=(3,2))
          >>> y = C.sequence.is_first(x)
          >>> # create one sequence of 4 tensors each with shape (3,2)
          >>> x0 = np.reshape(np.arange(24.0,dtype=np.float32),(1,4,3,2))
          >>> y.eval({x:x0})
          [array([ 1.,  0.,  0.,  0.], dtype=float32)]
  
      Args:
          seq: the symbolic tensor denoting a sequence
          name (str): the name of the node in the network
  
      Returns:
          :class:`~cntk.ops.functions.Function`
      """
      from cntk.cntk_py import is_first
  
      seq = sanitize_input(seq, get_data_type(seq))
      return is_first(seq, 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 7 for calling a global function with example usage: is_first(seq, name) and returns: is_first