def METHOD_NAME(socket_patches):
    if not sys.platform.startswith("win"):
        METHOD_NAME = TorchModelServiceWorker(
            "unix", "my-socket.9999", None, None, metrics_config_path
        )
    else:
        METHOD_NAME = TorchModelServiceWorker(
            "tcp", "my-socket", None, 9999, metrics_config_path
        )
    METHOD_NAME.sock = socket_patches.socket
    METHOD_NAME.service = Service("name", "mpath", "testmanifest", None, 0, 1)
    return METHOD_NAME