code: def test_categorical_dimension_by_string_type_matcher() -> (
      None
  ):  # noqa: D
      assert (
          defaults.CategoricalDimensionByStringTypeRule().match_column(
              get_column_properties(
                  "db.schema.table.dim",
                  InferenceColumnType.STRING,
                  True,
              )
          )
      )
      assert not defaults.CategoricalDimensionByStringTypeRule().match_column(
          get_column_properties(
              "db.schema.table.bla", InferenceColumnType.FLOAT, True
          )
      )
  
file_path: metricflow/metricflow/test/inference/rule/test_defaults.py
imports: from __future__ import annotations
  import metricflow.inference.rule.defaults
  from metricflow.dataflow.sql_column import SqlColumn
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.inference.context.data_warehouse import ColumnProperties, DataWarehouseInferenceContext, InferenceColumnType, TableProperties
  from metricflow.inference.models import InferenceSignalType
label_desc: Use image node_id 9 for calling a global function with example usage: test_categorical_dimension_by_string_type_matcher() without return types