code: def send_request(cls, sock, working_dir, command, *arguments, **environment):
      
      for argument in arguments:
        cls.write_chunk(sock, ChunkType.ARGUMENT, argument)
  
      for item_tuple in environment.items():
        cls.write_chunk(sock,
                        ChunkType.ENVIRONMENT,
                        cls.ENVIRON_SEP.join(cls._decode_unicode_seq(item_tuple)))
  
      cls.write_chunk(sock, ChunkType.WORKING_DIR, working_dir)
      cls.write_chunk(sock, ChunkType.COMMAND, command)
docs: Send the initial Nailgun request over the specified socket.