code: def test_get_columns(mocker: MockerFixture):
      """Test that ROW columns are not expanded without expand_rows"""
      from superset.db_engine_specs.trino import TrinoEngineSpec
  
      field1_type = datatype.parse_sqltype("row(a varchar, b date)")
      field2_type = datatype.parse_sqltype(
          "row(r1 row(a varchar, b varchar))"
      )
      field3_type = datatype.parse_sqltype("int")
  
      sqla_columns = [
          SQLAColumnType(
              name="field1", type=field1_type, is_dttm=False
          ),
          SQLAColumnType(
              name="field2", type=field2_type, is_dttm=False
          ),
          SQLAColumnType(
              name="field3", type=field3_type, is_dttm=False
          ),
      ]
      mock_inspector = mocker.MagicMock()
      mock_inspector.get_columns.return_value = sqla_columns
  
      actual = TrinoEngineSpec.get_columns(
          mock_inspector, "table", "schema"
      )
      expected = [
          ResultSetColumnType(
              name="field1",
              column_name="field1",
              type=field1_type,
              is_dttm=False,
          ),
          ResultSetColumnType(
              name="field2",
              column_name="field2",
              type=field2_type,
              is_dttm=False,
          ),
          ResultSetColumnType(
              name="field3",
              column_name="field3",
              type=field3_type,
              is_dttm=False,
          ),
      ]
  
      _assert_columns_equal(actual, expected)
  
imports: import copy
  import json
  from datetime import datetime
  from typing import Any, Optional
  from unittest.mock import Mock, patch
  import pandas
  import pytest
  from pytest_mock import MockerFixture
  from sqlalchemy import types
  from trino.sqlalchemy import datatype
  import superset.config
  from superset.constants import QUERY_CANCEL_KEY, QUERY_EARLY_CANCEL_KEY, USER_AGENT
  from superset.superset_typing import ResultSetColumnType, SQLAColumnType
  from superset.utils.core import GenericDataType
  from tests.unit_tests.db_engine_specs.utils import assert_column_spec, assert_convert_dttm
  from tests.unit_tests.fixtures.common import dttm
label_desc: Use image node_id 18 for calling a global function with example usage: test_get_columns(mocker) without return types