code: def get_batch_outline(num_frames, frames_per_sequence, batch_size):
      num_iterations = num_frames // (frames_per_sequence * batch_size)
      remaining_frames = (
          num_frames - num_iterations * frames_per_sequence * batch_size
      )
      num_full_sequences = remaining_frames // frames_per_sequence
      num_frames_in_partial_sequence = (
          remaining_frames - num_full_sequences * frames_per_sequence
      )
      return (
          num_iterations,
          num_full_sequences,
          num_frames_in_partial_sequence,
      )
  
file_path: DALI/dali/test/python/input/test_video.py
imports: import glob
  import itertools
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.types
  from nose2.tools import params
  from nose_utils import assert_raises
  from nvidia.dali import pipeline_def
  from test_utils import get_dali_extra_path, to_array
label_desc: Use image node_id 5 for calling a global function with example usage: get_batch_outline(num_frames, frames_per_sequence, batch_size) and returns: num_iterations,  num_full_sequences,  num_frames_in_partial_sequence