def METHOD_NAME(self):
    """
    Reads data from device or interface synchronously.
    """
    if self.closed:
        raise RuntimeError("Trying to read from a closed instrument")
    if _USE_DEBUG:
        print("DBG-Mock: read", self.answer)
    if len(self.answer) > 0:
        return self.answer.pop(0)
    return 'ERROR'