code: def read(self, session, count):
          
  
          # from the session handle, dispatch to the read method of the session object.
          try:
              ret = self.sessions[session].read(count)
          except KeyError:
              return 0, StatusCode.error_invalid_object
  
          if ret[1] < 0:
              raise errors.VisaIOError(ret[1])
  
          return ret
docs: Reads data from device or interface synchronously.
  
          Corresponds to viRead function of the VISA library.
  
          :param session: Unique logical identifier to a session.
          :param count: Number of bytes to be read.
          :return: data read, return value of the library call.
          :rtype: bytes, VISAStatus