class_docstr: Import Saved Queries
  
  This command dispatches the import to different versions of the command
  until it finds one that matches.
code: def run(self) -> None:
      # iterate over all commands until we find a version that can
      # handle the contents
      for version in command_versions:
          command = version(self.contents, *self.args, **self.kwargs)
          try:
              command.run()
              return
          except IncorrectVersionError:
              logger.debug("File not handled by command, skipping")
          except (CommandInvalidError, ValidationError) as exc:
              # found right version, but file is invalid
              logger.exception("Error running import command")
              raise exc
  
      raise CommandInvalidError(
          "Could not find a valid command to import file"
      )
  
file_path: superset/superset/commands/query/importers/dispatcher.py
imports: import logging
  from typing import Any
  from marshmallow.exceptions import ValidationError
  from superset.commands.base import BaseCommand
  from superset.commands.exceptions import CommandInvalidError
  from superset.commands.importers.exceptions import IncorrectVersionError
  from superset.commands.query.importers import v1
label_desc: Use image node_id 2 for calling the ImportSavedQueriesCommand obj's underlying member method code with example usage: obj.run() without return types