code: def image_resource(filename):
      relpath = os.path.relpath(
          pkg_resources.resource_filename(
              "cellprofiler", os.path.join("data", "images", filename)
          )
      )
  
      # With this specific relative path we are probably building the documentation
      # in sphinx The path separator used by sphinx is "/" on all platforms.
      if relpath == os.path.join(
          "..", "cellprofiler", "data", "images", filename
      ):
          return "../images/{}".format(filename)
  
      # Otherwise, if you're rendering in the GUI, relative paths are fine
      # Note: the HTML renderer requires to paths to use '/' so we replace
      # the windows default '\\' here
      return relpath.replace("\\", "/")
  
file_path: CellProfiler/src/frontend/cellprofiler/gui/help/content.py
imports: import os
  import os.path
  import re
  import base64
  import pkg_resources
  import cellprofiler
label_desc: Use image node_id 2 for calling a global function with example usage: image_resource(filename) and returns: relpath, str