code: def roundint(num):
      # std::round has different behavior than np.round so manually add 0.5 and truncate to int
      return int(num + (0.5 if num >= 0 else -0.5))
  
imports: from nvidia.dali import Pipeline, pipeline_def, ops, fn, types
  import numpy
  import os
  from functools import partial
  from math import floor
  from test_utils import compare_pipelines, get_dali_extra_path, RandomDataIterator, generator_random_axes_for_3d_input, generator_random_data, as_array
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 1 for calling a global function with example usage: roundint(num) and returns: int