code: def _read_from_file(self, filename):
          
          try:
              with open(filename, 'rb') as f:
                  return self._loads(f.read())
          except (IOError, OSError):
              logger.warning('Error opening file: {}'.format(filename))
              return None
docs: Read data from filename.