code: def _check_colon_quotes(s):
      # A quick helper function to check if a string has a colon in it
      # and if it is quoted properly with double quotes.
      # refer https://github.com/pydot/pydot/issues/258
      return ":" in s and (s[0] != '"' or s[-1] != '"')
  
file_path: networkx/networkx/drawing/nx_pydot.py
imports: from locale import getpreferredencoding
  import networkx
  from networkx.utils import open_file
label_desc: Use image node_id 4 for calling a global function with example usage: _check_colon_quotes(s) and returns: unknown