docstr: Return a path name for a URL
  For files, the user expects to see a path, not a URL
docstr_tok: ["Return","a","path","name","for","a","URL","For","files",",","the","user","expects","to","see","a","path",",","not","a","URL"]
code: def get_folder_display_name(folder):
      """Return a path name for a URL
      For files, the user expects to see a path, not a URL
      """
      if folder.startswith("file:"):
          return url2pathname(folder[5:])
      return folder
  
imports: import logging
  import os
  import sys
  import uuid
  from urllib.request import url2pathname
  from urllib.parse import urlparse
  import wx
  import wx.lib.scrolledpanel
  from cellprofiler_core.pipeline import ImageFile
  from cellprofiler_core.preferences import report_progress
label_desc: Use image node_id 22 for calling the PathListCtrl obj's underlying member method code with example usage: obj.get_folder_display_name(folder) and returns: folder, url2pathname