code: def get_archive_cmdlist_func (program, command, format):
      
      # get python module for given archive program
      key = util.stripext(os.path.basename(program).lower())
      modulename = ".programs." + ProgramModules.get(key, key)
      # import the module
      try:
          module = importlib.import_module(modulename, __name__)
      except ImportError as msg:
          raise util.PatoolError(msg)
      # get archive handler function (eg. patoolib.programs.star.extract_tar)
      try:
          return getattr(module, '%s_%s' % (command, format))
      except AttributeError as msg:
          raise util.PatoolError(msg)
docs: Get the Python function that executes the given program.