code: def default_serving_port(cls, v, values):
      if not v:
          v = 8500 if values.get("mode") == "grpc" else 8501
      return v
  
file_path: modelkit/modelkit/core/settings.py
imports: from typing import Optional, Union
  import pydantic
  import pydantic_settings
  from typing_extensions import Annotated
label_desc: Use image node_id 1 for calling the TFServingSettings obj's underlying member method code with example usage: obj.default_serving_port(cls, v, values) and returns: v