code: def isClose(x, y, relative_tolerance):  # pylint: disable=invalid-name
      """Returns True if x is close to y given the relative tolerance or if x and y are both inf, both -inf, or both NaNs.
  
      This function does not distinguish between signalling and non-signalling NaN.
  
      Args:
        x: float value to be compared
        y: float value to be compared
        relative_tolerance: float. The allowable difference between the two values
          being compared is determined by multiplying the relative tolerance by the
          maximum of the two values. If this is not provided, then all floats are
          compared using string comparison.
      """
      # NaNs are considered equal.
      if math.isnan(x) or math.isnan(y):
          return math.isnan(x) == math.isnan(y)
  
      if math.isinf(x) or math.isinf(y):
          return x == y
  
      return abs(x - y) <= relative_tolerance * max(abs(x), abs(y))
  
file_path: tensorflow/tensorflow/python/util/protobuf/compare.py
imports: import collections.abc
  import difflib
  import math
  from google.protobuf import descriptor
  from google.protobuf import descriptor_pool
  from google.protobuf import message
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling a global function with example usage: isClose(x, y, relative_tolerance) and returns: unknown, unknown, unknown