code: def write(self, data):
          
  
          send_end, _ = self.get_attribute(constants.VI_ATTR_SEND_END_EN)
  
          count = self.interface.write(data)
  
          return count, StatusCode.success
docs: Writes data to device or interface synchronously.
  
          Corresponds to viWrite function of the VISA library.
  
          :param data: data to be written.
          :type data: bytes
          :return: Number of bytes actually transferred, return value of the library call.
          :rtype: (int, VISAStatus)