code: def uncurl_quotes(text):
      r"""
      Replace curly quotation marks with straight equivalents.
  
          >>> print(uncurl_quotes('\u201chere\u2019s a test\u201d'))
          "here's a test"
      """
      return SINGLE_QUOTE_RE.sub("'", DOUBLE_QUOTE_RE.sub('"', text))
  
imports: import codecs
  import html
  import re
  import warnings
  import ftfy
  from ftfy.chardata import ALTERED_UTF8_RE, C1_CONTROL_RE, CONTROL_CHARS, DOUBLE_QUOTE_RE, HTML_ENTITIES, HTML_ENTITY_RE, LIGATURES, LOSSY_UTF8_RE, SINGLE_QUOTE_RE, UTF8_DETECTOR_RE, WIDTH_MAP
  from ftfy.badness import is_bad
label_desc: Use image node_id 7 for calling a global function with example usage: uncurl_quotes(text) and returns: SINGLE_QUOTE_RE