code: def string_contains_surrogates(ustring):
      """
      Check if the unicode string contains surrogate code points
      on a CPython platform with wide (UCS-4) or narrow (UTF-16)
      Unicode, i.e. characters that would be spelled as two
      separate code units on a narrow platform.
      """
      for c in map(ord, ustring):
          if c > 65535:  # can only happen on wide platforms
              return True
          if 0xD800 <= c <= 0xDFFF:
              return True
      return False
  
imports: from __future__ import absolute_import
  import re
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: string_contains_surrogates(ustring) and returns: False, True, True