code: def test_unsupported_discrete_prior():
      """Test unsupported discrete prior message"""
      dim = Integer("yolo", "norm", 0, 1)
      with pytest.raises(TypeError) as exc:
          discrete_grid(dim, 6)
  
      assert exc.match(
          "Grid Search only supports `loguniform`, `uniform`"
      )
  
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 7 for calling a global function with example usage: test_unsupported_discrete_prior() without return types