code: def test_enum_definitions():
      """This tests: all enums are defined properly as different levels"""
      status_code_enum_definition = (
          PROTO_TO_PYDANTIC_MODELS.StatusProto().schema()[
              "definitions"
          ]["StatusCode"]
      )
      assert status_code_enum_definition["enum"] == [0, 1]
  
file_path: jina/tests/unit/serve/runtimes/gateway/http/test_models.py
imports: import pydantic
  import pytest
  from jina.serve.runtimes.gateway.models import PROTO_TO_PYDANTIC_MODELS, JinaRequestModel
label_desc: Use image node_id 2 for calling a global function with example usage: test_enum_definitions() without return types