code: def test_metaclass_raises_if_first_arg_in_init_is_not_model():
      with pytest.raises(
          SyntaxError, match="__init__ must set 'model' as first"
      ):
  
          class FailedModelArg(ModelComponent):
              def __init__(self, foo):
                  pass
  
              @expose(
                  inputs={"param": Number()}, outputs={"foo": Number()}
              )
              @staticmethod
              def predict(param):
                  return param
  
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 3 for calling a global function with example usage: test_metaclass_raises_if_first_arg_in_init_is_not_model() and returns: param