code: def stringify(v, infinity="∞"):
      if v is None:
          return None
      if v == "Infinity":
          return infinity
      if isinstance(v, str_type):
          return '"{}"'.format(v)
      if isinstance(v, int):
          if v > (1 << 62):  # handle Long.MAX_VALUE case
              return infinity
          return str(v)
      if isinstance(v, float):
          if v > (1 << 128):  # handle Double.MAX_VALUE case
              return infinity
          return "{:.10}".format(v)
      return str(v)
  
imports: from copy import deepcopy
  from functools import partial
  from io import StringIO
  from inspect import getsource
  from pprint import pformat
  import sys
  import bindings
  from custom import get_customizations_for, reformat_block
label_desc: Use image node_id 6 for calling a global function with example usage: stringify(v, infinity) and returns: str, None, infinity, str, str, str, infinity, infinity