code: def test_check_field_defined():
      base_func = {
          "name": "function",
          "doc": "doc",
          "since": "1.0",
          "expr_class": "class",
      }
      fields = ["name", "doc", "since", "expr_class"]
      for f in fields:
          new_func = base_func.copy()
          del new_func[f]
          groups = {"test": {"functions": [new_func]}}
          with pytest.raises(AssertionError) as error:
              rt.prepare_definitions(groups)
              assert f in error.value
  
imports: import pytest
  import render_template
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_field_defined() without return types