code: def test_model_with_top_k(top_k):
      m = JinaRequestModel(
          data=[{"text": "abc"}], parameters={"top_k": top_k}
      )
      assert m.parameters["top_k"] == top_k
  
      m = JinaRequestModel(parameters={"top_k": top_k})
      assert m.parameters["top_k"] == top_k
  
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 4 for calling a global function with example usage: test_model_with_top_k(top_k) without return types