code: def expand_dims(from_start, from_end, to_start, to_end):
      ndim = get_ndim(from_start, from_end, to_start, to_end)
  
      def expand(arg, ndim, default_arg):
          if arg is None:
              return [default_arg] * ndim
          elif len(arg) == 1:
              return [arg[0]] * ndim
          else:
              assert len(arg) == ndim
              return arg
  
      return [
          expand(from_start, ndim, 0.0),
          expand(from_end, ndim, 1.0),
          expand(to_start, ndim, 0.0),
          expand(to_end, ndim, 1.0),
      ]
  
imports: import random
  import warnings
  import numpy
  from scipy.spatial.transform import Rotation
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops.transforms
  import nvidia.dali.ops
  import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  from sequences_test_utils import ArgData, ArgDesc, sequence_suite_helper, ArgCb, ParamsProvider
  from nose_utils import assert_raises
label_desc: Use image node_id 18 for calling a global function with example usage: expand_dims(from_start, from_end, to_start, to_end) and returns: list, unknown, unknown, arg