class_docstr: Import Saved Queries
code: def _import(
      session: Session, configs: dict[str, Any], overwrite: bool = False
  ) -> None:
      # discover databases associated with saved queries
      database_uuids: set[str] = set()
      for file_name, config in configs.items():
          if file_name.startswith("queries/"):
              database_uuids.add(config["database_uuid"])
  
      # import related databases
      database_ids: dict[str, int] = {}
      for file_name, config in configs.items():
          if (
              file_name.startswith("databases/")
              and config["uuid"] in database_uuids
          ):
              database = import_database(
                  session, config, overwrite=False
              )
              database_ids[str(database.uuid)] = database.id
  
      # import saved queries with the correct parent ref
      for file_name, config in configs.items():
          if (
              file_name.startswith("queries/")
              and config["database_uuid"] in database_ids
          ):
              config["db_id"] = database_ids[config["database_uuid"]]
              import_saved_query(session, config, overwrite=overwrite)
  
file_path: superset/superset/commands/query/importers/v1/__init__.py
imports: from typing import Any
  from marshmallow import Schema
  from sqlalchemy.orm import Session
  from superset.commands.database.importers.v1.utils import import_database
  from superset.commands.importers.v1 import ImportModelsCommand
  from superset.commands.query.exceptions import SavedQueryImportError
  from superset.commands.query.importers.v1.utils import import_saved_query
  from superset.connectors.sqla.models import SqlaTable
  from superset.daos.query import SavedQueryDAO
  from superset.databases.schemas import ImportV1DatabaseSchema
  from superset.queries.saved_queries.schemas import ImportV1SavedQuerySchema
label_desc: Use image node_id 1 for calling the ImportSavedQueriesCommand obj's underlying member method code with example usage: obj._import(session, configs, overwrite) without return types