code: def test_metaclass_raises_if_expose_decorator_not_applied_to_method():
      with pytest.raises(SyntaxError, match=r"expose.* decorator"):
  
          class FailedNoExposed(ModelComponent):
              def __init__(self, model):
                  pass
  
file_path: lightning-flash/tests/core/serve/test_gridbase_validations.py
imports: import pytest
  from flash.core.serve import ModelComponent, expose
  from flash.core.serve.types import Number
  from flash.core.utilities.imports import _CYTOOLZ_AVAILABLE, _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: test_metaclass_raises_if_expose_decorator_not_applied_to_method() without return types