def load(self, f):
with _open_file_obj(f) as f:<EOL><INDENT>parser = self.parse_file(f)<EOL>self.deserialize(parser)<EOL><DEDENT>
Load data from a file.

:param f: file-like object or path to file
:type f: file or str