code: def get_output_size(angle, input_size, parity_correction=True):
      cosa = abs(math.cos(angle))
      sina = abs(math.sin(angle))
      (h, w) = input_size[0:2]
      eps = 1e-2
      out_w = int(math.ceil(w * cosa + h * sina - eps))
      out_h = int(math.ceil(h * cosa + w * sina - eps))
      if not parity_correction:
          return (out_h, out_w)
  
      if sina <= cosa:
          if out_w % 2 != w % 2:
              out_w += 1
          if out_h % 2 != h % 2:
              out_h += 1
      else:
          if out_w % 2 != h % 2:
              out_w += 1
          if out_h % 2 != w % 2:
              out_h += 1
      return (out_h, out_w)
  
imports: import cv2
  import numpy
  import math
  import os
  import random
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import nvidia.dali
  from test_utils import compare_pipelines
  from sequences_test_utils import ArgData, ArgDesc, ArgCb, ParamsProvider, get_video_input_cases, sequence_suite_helper
label_desc: Use image node_id 1 for calling a global function with example usage: get_output_size(angle, input_size, parity_correction) and returns: out_h,  out_w, out_h,  out_w