code: def _dump_str(v):
      if (
          sys.version_info < (3,)
          and hasattr(v, "decode")
          and isinstance(v, str)
      ):
          v = v.decode("utf-8")
      v = "%r" % v
      if v[0] == "u":
          v = v[1:]
      singlequote = v.startswith("'")
      if singlequote or v.startswith('"'):
          v = v[1:-1]
      if singlequote:
          v = v.replace("\\'", "'")
          v = v.replace('"', '\\"')
      v = v.split("\\x")
      while len(v) > 1:
          i = -1
          if not v[0]:
              v = v[1:]
          v[0] = v[0].replace("\\\\", "\\")
          # No, I don't know why != works and == breaks
          joinx = v[0][i] != "\\"
          while v[0][:i] and v[0][i] == "\\":
              joinx = not joinx
              i -= 1
          if joinx:
              joiner = "x"
          else:
              joiner = "u00"
          v = [v[0] + joiner + v[1]] + v[2:]
      return unicode('"' + v[0] + '"')
  
imports: import datetime
  import re
  import sys
  from decimal import Decimal
  from toml.decoder import InlineTableDict
label_desc: Use image node_id 3 for calling a global function with example usage: _dump_str(v) and returns: unicode