code: def round_if_near_integer(a, epsilon=1e-4):
      """
      Round a to the nearest integer if that integer is within an epsilon
      of a.
      """
      if abs(a - round(a)) <= epsilon:
          return round(a)
      else:
          return a
  
imports: from decimal import Decimal
  import math
  from numpy import isnan
label_desc: Use image node_id 3 for calling a global function with example usage: round_if_near_integer(a, epsilon) and returns: round, a