code: def test_get_non_defaults_args():
      args = set_gateway_parser().parse_args(
          [
              "--port",
              "12345",
              "12344",
              "--protocol",
              "grpc",
              "--uses",
              "MyCustomGateway",
              "--uses-with",
              '{"arg":"value"}',
          ]
      )
      non_defaults = ArgNamespace.get_non_defaults_args(
          args,
          set_gateway_parser(),
      )
      assert non_defaults["port"] == [12345, 12344]
      assert "protocol" not in non_defaults
      assert non_defaults["uses"] == "MyCustomGateway"
      assert non_defaults["uses_with"] == {"arg": "value"}
  
file_path: jina/tests/unit/parsers/peapods/runtimes/test_port_protocol_parser.py
imports: import pytest
  from jina.enums import ProtocolType
  from jina.helper import ArgNamespace
  from jina.parsers import set_gateway_parser, set_pod_parser
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_non_defaults_args() without return types