code: def py_encode_basestring(s):
      """Return a JSON representation of a Python string"""
  
      def replace(match):
          return ESCAPE_DCT[match.group(0)]
  
      return '"' + ESCAPE.sub(replace, s) + '"'
  
file_path: cpython/Lib/json/encoder.py
imports: import re
label_desc: Use image node_id 1 for calling a global function with example usage: py_encode_basestring(s) and returns: unknown, ESCAPE_DCT