code: def _pop_first(x):
      xi = iter(x)
  
      try:
          x0 = next(xi)
      except StopIteration:
          x0 = None
  
      return x0, xi
  
imports: import logging
  import numpy
  import fiftyone.core.dataset
  import fiftyone.core.utils
  import fiftyone.core.view
  import apache_beam
  from apache_beam.options.pipeline_options import PipelineOptions
label_desc: Use image node_id 4 for calling a global function with example usage: _pop_first(x) and returns: x0,  xi