code: def test_raylet_is_robust_to_random_messages(ray_start_regular):
      node_manager_address = None
      node_manager_port = None
      for client in ray.nodes():
          if "NodeManagerAddress" in client:
              node_manager_address = client["NodeManagerAddress"]
              node_manager_port = client["NodeManagerPort"]
      assert node_manager_address
      assert node_manager_port
      # Try to bring down the node manager:
      s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
      s.connect((node_manager_address, node_manager_port))
      s.send(1000 * b"asdf")
  
      @ray.remote
      def f():
          return 1
  
      assert ray.get(f.remote()) == 1
  
imports: import logging
  import os
  import pickle
  import socket
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.utils
  import ray.cluster_utils
  import ray.util.accelerators
  from ray._private.test_utils import check_call_ray, wait_for_num_actors
  import setproctitle
label_desc: Use image node_id 11 for calling a global function with example usage: test_raylet_is_robust_to_random_messages(ray_start_regular) and returns: int