code: def test_unsupported_type():
      """Test unsupported real prior message"""
  
      class NewDimType:
          @property
          def type(self):
              return "newdimtype"
  
      dim = NewDimType()
      with pytest.raises(TypeError) as exc:
          grid(dim, 5)
  
      assert exc.match(
          f"Grid Search only supports `real`, `integer`, `categorical` and `fidelity`: `{dim.type}`"
      )
  
imports: from __future__ import annotations
  import logging
  import numpy.testing
  import pytest
  from orion.algo.gridsearch import GridSearch, categorical_grid, discrete_grid, grid, real_grid
  from orion.algo.space import Categorical, Integer, Real, Space
  from orion.testing.algo import BaseAlgoTests
label_desc: Use image node_id 11 for calling a global function with example usage: test_unsupported_type() and returns: str