code: def write_virtual_memory(self, cpu_id, address, size, bytes_p):
          
          if not isinstance(cpu_id, baseinteger):
              raise TypeError("cpu_id can only be an instance of type baseinteger")
          if not isinstance(address, baseinteger):
              raise TypeError("address can only be an instance of type baseinteger")
          if not isinstance(size, baseinteger):
              raise TypeError("size can only be an instance of type baseinteger")
          if not isinstance(bytes_p, list):
              raise TypeError("bytes_p can only be an instance of type list")
          for a in bytes_p[:10]:
              if not isinstance(a, basestring):
                  raise TypeError(
                          "array can only contain objects of type basestring")
          self._call("writeVirtualMemory",
                       in_p=[cpu_id, address, size, bytes_p])
docs: Writes guest virtual memory, access handles (MMIO++) are ignored.
          
          This feature is not implemented in the 4.0.0 release but may show up
          in a dot release.
  
          in cpu_id of type int
              The identifier of the Virtual CPU.
  
          in address of type int
              The guest virtual address.
  
          in size of type int
              The number of bytes to read.
  
          in bytes_p of type str
              The bytes to write.