class_docstr: An earlier version of this code (#626) was originally developed as part of the following work:
  
  Rabault, J., Kuhnle, A (2019). Accelerating Deep Reinforcement Leaning strategies of Flow
  Control through a multi-environment approach. Physics of Fluids.
code: def remote_send(cls, connection, success, result):
      str_success = b"1" if success else b"0"
      bytes_sent = connection.send(str_success)
      if bytes_sent != 1:
          raise TensorforceError.unexpected()
  
      str_result = msgpack.packb(o=result)
      num_bytes = len(str_result)
      str_num_bytes = "{:08d}".format(num_bytes).encode()
      bytes_sent = connection.send(str_num_bytes + str_result)
      if bytes_sent != num_bytes + 8:
          raise TensorforceError.unexpected()
  
file_path: tensorforce/tensorforce/environments/socket_environment.py
imports: from socket import SHUT_RDWR, socket
  import time
  import msgpack
  import msgpack_numpy
  from tensorforce import TensorforceError
  from tensorforce.environments import RemoteEnvironment
label_desc: Use image node_id 5 for calling the SocketEnvironment obj's underlying member method code with example usage: obj.remote_send(cls, connection, success, result) without return types