code: def _test_file_list_starts_videopipeline(start, end):
      files = sorted(os.listdir(VIDEO_DIRECTORY))
      list_file = tempfile.NamedTemporaryFile(mode="w", delete=False)
      list_file.write(
          "{} {}\n".format(os.path.join(VIDEO_DIRECTORY, files[0]), 0)
      )
      list_file.close()
  
      pipe = VideoPipeList(
          batch_size=BATCH_SIZE, data=list_file.name, sequence_length=1
      )
      pipe.build()
      reference_seq_num = pipe.reader_meta("Reader")["epoch_size"]
      del pipe
      os.remove(list_file.name)
  
      list_file = tempfile.NamedTemporaryFile(mode="w", delete=False)
      if end is None:
          list_file.write(
              "{} {} {}\n".format(
                  os.path.join(VIDEO_DIRECTORY, files[0]), 0, start
              )
          )
      else:
          list_file.write(
              "{} {} {} {}\n".format(
                  os.path.join(VIDEO_DIRECTORY, files[0]), 0, start, end
              )
          )
      list_file.close()
  
      pipe = VideoPipeList(
          batch_size=BATCH_SIZE, data=list_file.name, sequence_length=1
      )
      pipe.build()
      seq_num = pipe.reader_meta("Reader")["epoch_size"]
  
      expected_seq_num = reference_seq_num
      if start > 0:
          expected_seq_num -= start
      elif start < 0:
          expected_seq_num = -start
  
      if end is not None:
          if end > 0:
              expected_seq_num -= reference_seq_num - end
          elif end < 0:
              expected_seq_num += end
  
      assert (
          expected_seq_num == seq_num
      ), "Reference is {}, expected is {}, obtained {}".format(
          reference_seq_num, expected_seq_num, seq_num
      )
      os.remove(list_file.name)
  
imports: import os
  import math
  from test_utils import get_gpu_num
  from test_utils import get_dali_extra_path
  import nvidia.dali.ops
  import nvidia.dali.types
  from nvidia.dali.pipeline import Pipeline, pipeline_def
  import nvidia.dali.fn
  import numpy
  import tempfile
  from test_utils import check_output_pattern
  from nose_utils import assert_raises, raises
label_desc: Use image node_id 8 for calling a global function with example usage: _test_file_list_starts_videopipeline(start, end) without return types