code: def start_socket_server(
      model_config: Path,
      socket_type: str,
      port: Optional[int],
      socket_file: Optional[Union[str, Path]],
  ) -> None:
      server = SocketServer(
          model_config, socket_type, port, socket_file
      )
      server.start()
  
file_path: DeepPavlov/deeppavlov/utils/socket/socket.py
imports: import asyncio
  import json
  from logging import getLogger
  from pathlib import Path
  from struct import pack, unpack
  from typing import Any, List, Optional, Tuple, Union
  from deeppavlov.core.commands.infer import build_model
  from deeppavlov.core.common.chainer import Chainer
  from deeppavlov.core.data.utils import jsonify_data
  from deeppavlov.utils.connector import DialogLogger
  from deeppavlov.utils.server import get_server_params
label_desc: Use image node_id 2 for calling a global function with example usage: start_socket_server(model_config, socket_type, port, socket_file) without return types