code: def _generate_filename(filename, component_type):
      if filename is None:
          return None
      path = filename
      if component_type:
          path = "/".join([component_type, path])
      return path
  
imports: import logging
  import os
  import pooch
  import satpy
label_desc: Use image node_id 2 for calling a global function with example usage: _generate_filename(filename, component_type) and returns: path, None