code: def test_where_latest_partition(
      mock_latest_partition,
      column_type,
      column_value: Any,
      expected_value: str,
  ) -> None:
      """
      Test the ``where_latest_partition`` method
      """
      from superset.db_engine_specs.presto import (
          PrestoEngineSpec as spec,
      )
  
      mock_latest_partition.return_value = (
          ["partition_key"],
          [column_value],
      )
  
      query = sql.select(text("* FROM table"))
      columns: list[ResultSetColumnType] = [
          {
              "column_name": "partition_key",
              "name": "partition_key",
              "type": column_type,
              "is_dttm": False,
          }
      ]
  
      expected = f"""SELECT * FROM table \nWHERE "partition_key" = {expected_value}"""
      result = spec.where_latest_partition(
          "table", mock.MagicMock(), mock.MagicMock(), query, columns
      )
      assert result is not None
      actual = result.compile(
          dialect=PrestoDialect(),
          compile_kwargs={"literal_binds": True},
      )
  
      assert str(actual) == expected
  
file_path: superset/tests/unit_tests/db_engine_specs/test_presto.py
imports: from datetime import datetime
  from typing import Any, Optional
  from unittest import mock
  import pytest
  import pytz
  from pyhive.sqlalchemy_presto import PrestoDialect
  from sqlalchemy import sql, text, types
  from sqlalchemy.engine.url import make_url
  from superset.superset_typing import ResultSetColumnType
  from superset.utils.core import GenericDataType
  from tests.unit_tests.db_engine_specs.utils import assert_column_spec, assert_convert_dttm
label_desc: Use image node_id 4 for calling a global function with example usage: test_where_latest_partition(mock_latest_partition, column_type, column_value, expected_value) without return types