parameters: (root, target)
return_statement: return min_diff_data[0]
docstring: Function to find the node closest to target
      Params:
          root -- the root node of the tree
          target -- the value to which closest node needs to be found.
docstring_summary: Function to find the node closest to target
      Params:
          root -- the root node of the tree
          target -- the value to which closest node needs to be found.
docstring_tokens: Function to find the node closest to target Params : root -- the root node of the tree target -- the value to which closest node needs to be found .
function: def closest_diff(root, target):
      '''Function to find the node closest to target
      Params:
          root -- the root node of the tree
          target -- the value to which closest node needs to be found.
      '''
      min_diff, min_diff_data = sys.maxsize, [-1]
      closest_diff_util(root, target, min_diff, min_diff_data)
      return min_diff_data[0]
function_tokens: def closest_diff ( root , target ) : min_diff , min_diff_data = sys . maxsize , [ - 1 ] closest_diff_util ( root , target , min_diff , min_diff_data ) return min_diff_data [ 0 ]