docstr: Set the function to call to get context menu items
  
  fn_context_menu - a function that returns a list of menu items. The calling
            signature is fn_menu(paths) and the return is a sequence
            of two tuples of the form, (key, display_string).
  
  fn_folder_menu - a function that returns a list of menu items for
            a folder. The signature is fn_folder_menu(path).
  
  fn_empty_menu - a function that returns a list of menu items if
                  nothing is selected
  
  fn_do_menu_command - a function that performs the action indicated
            by the command. It has the signature,
            fn_do_menu_command(paths, key) where "key" is the key from
            fn_context_menu.
  
  fn_do_folder_menu_command - a function that performs the action
            indicated by the folder command. The signature is
            fn_do_folder_menu_command(path, key)
  
  fn_do_empty_menu_command - a function that performs the command from
            the empty menu
docstr_tok: ["Set","the","function","to","call","to","get","context","menu","items","fn_context_menu","-","a","function","that","returns","a","list","of","menu","items",".","The","calling","signature","is","fn_menu","(","paths",")","and","the","return","is","a","sequence","of","two","tuples","of","the","form",",","(","key",",","display_string",")",".","fn_folder_menu","-","a","function","that","returns","a","list","of","menu","items","for","a","folder",".","The","signature","is","fn_folder_menu","(","path",")",".","fn_empty_menu","-","a","function","that","returns","a","list","of","menu","items","if","nothing","is","selected","fn_do_menu_command","-","a","function","that","performs","the","action","indicated","by","the","command",".","It","has","the","signature",",","fn_do_menu_command","(","paths",",","key",")","where","``","key","''","is","the","key","from","fn_context_menu",".","fn_do_folder_menu_command","-","a","function","that","performs","the","action","indicated","by","the","folder","command",".","The","signature","is","fn_do_folder_menu_command","(","path",",","key",")","fn_do_empty_menu_command","-","a","function","that","performs","the","command","from","the","empty","menu"]
code: def set_context_menu_fn(
      self,
      fn_context_menu,
      fn_folder_menu,
      fn_empty_menu,
      fn_do_menu_command,
      fn_do_folder_menu_command,
      fn_do_empty_command,
  ):
      """Set the function to call to get context menu items
  
      fn_context_menu - a function that returns a list of menu items. The calling
                signature is fn_menu(paths) and the return is a sequence
                of two tuples of the form, (key, display_string).
  
      fn_folder_menu - a function that returns a list of menu items for
                a folder. The signature is fn_folder_menu(path).
  
      fn_empty_menu - a function that returns a list of menu items if
                      nothing is selected
  
      fn_do_menu_command - a function that performs the action indicated
                by the command. It has the signature,
                fn_do_menu_command(paths, key) where "key" is the key from
                fn_context_menu.
  
      fn_do_folder_menu_command - a function that performs the action
                indicated by the folder command. The signature is
                fn_do_folder_menu_command(path, key)
  
      fn_do_empty_menu_command - a function that performs the command from
                the empty menu
      """
      self.fn_context_menu = fn_context_menu
      self.fn_do_menu_command = fn_do_menu_command
      self.fn_folder_context_menu = fn_folder_menu
      self.fn_do_folder_menu_command = fn_do_folder_menu_command
      self.fn_empty_context_menu = fn_empty_menu
      self.fn_do_empty_context_menu_command = fn_do_empty_command
  
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 6 for calling the PathListCtrl obj's underlying member method code with example usage: obj.set_context_menu_fn(fn_context_menu, fn_folder_menu, fn_empty_menu, fn_do_menu_command, fn_do_folder_menu_command, fn_do_empty_command) without return types