def METHOD_NAME(mocker: MockFixture, session: Session) -> None:
    """
    Test importing a chart.
    """
    from superset import security_manager
    from superset.charts.commands.importers.v1.utils import import_chart
    from superset.connectors.sqla.models import SqlaTable
    from superset.models.core import Database
    from superset.models.slice import Slice
    from tests.integration_tests.fixtures.importexport import chart_config
    mocker.patch.object(security_manager, "can_access", return_value=True)
    engine = session.get_bind()
    Slice.metadata.create_all(engine)  # pylint: disable=no-member
    config = copy.deepcopy(chart_config)
    config["datasource_id"] = 1
    config["datasource_type"] = "table"
    chart = import_chart(session, config)
    assert chart.slice_name == "Deck Path"
    assert chart.viz_type == "deck_path"
    assert chart.is_managed_externally is False
    assert chart.external_url is None