def read(self, flags='r'):
        fid = open(self.abspath(), flags)
        try:
            return fid.read()
        finally:
            fid.close()
get the contents, assuming the node is a file
dataset/ETHPy150Open cournape/Bento/bento/core/node.py/Node.read