code: def _slice_first(shape, n, axis):
      """Construct a slice tuple to take the first n elements along axis"""
      return _slice_at_axis(shape, slice(0, n), axis=axis)
  
imports: from __future__ import division, absolute_import, print_function
  import numpy
  from numpy.core.overrides import array_function_dispatch
label_desc: Use image node_id 4 for calling a global function with example usage: _slice_first(shape, n, axis) and returns: _slice_at_axis