code: def to_cv_win_size(window_size, axes=2, sigma=None):
      if window_size is None:
          # when using cv2.getGaussianKernel we need to always provide window size
          if sigma is not None:
              sigma = to_cv_sigma(sigma, axes)
              return tuple([int(3 * s + 0.5) * 2 + 1 for s in sigma])
          return (0,) * axes
      elif isinstance(window_size, int):
          return (int(window_size),) * axes
      elif (
          isinstance(window_size, np.ndarray)
          and len(window_size.shape) == 0
      ):
          return (int(window_size),) * axes
      elif len(window_size) == 1:
          return (int(window_size[0]),) * axes
      # OpenCV shape is the other way round: (width, height)
      return tuple(int(x) for x in reversed(window_size))
  
imports: from nvidia.dali.pipeline import Pipeline, pipeline_def
  import nvidia.dali.types
  import nvidia.dali.fn
  import numpy
  import cv2
  from scipy.ndimage import convolve1d
  import os
  from nose_utils import assert_raises, raises
  from nose.plugins.attrib import attr
  from sequences_test_utils import video_suite_helper, ArgCb
  from test_utils import get_dali_extra_path, check_batch, compare_pipelines, RandomlyShapedDataIterator, dali_type
label_desc: Use image node_id 3 for calling a global function with example usage: to_cv_win_size(window_size, axes, sigma) and returns: tuple, unknown, tuple, unknown, unknown, unknown