@classmethod<EOL><INDENT>def load(cls, pkid_or_path=None):<DEDENT>
path = pkid_or_path<EOL>if isinstance(path, (int, np.int32, np.int64)):<EOL><INDENT>raise NotImplementedError('<STR_LIT>')<EOL><DEDENT>elif not os.path.isfile(path):<EOL><INDENT>raise FileNotFoundError('<STR_LIT>'.format(path))<EOL><DEDENT>kwargs = {}<EOL>fields = defaultdict(dict)<EOL>with pd.HDFStore(path) as store:<EOL><INDENT>for key in store.keys():<EOL><INDENT>if '<STR_LIT>' in key:<EOL><INDENT>kwargs.update(store.get_storer(key).attrs.metadata)<EOL><DEDENT>elif "<STR_LIT>" in key:<EOL><INDENT>name, dname = "<STR_LIT:_>".join(key.split("<STR_LIT:_>")[<NUM_LIT:1>:]).split("<STR_LIT:/>")<EOL>dname = dname.replace('<STR_LIT>', '<STR_LIT>')<EOL>fields[name][dname] = store[key]<EOL><DEDENT>else:<EOL><INDENT>name = str(key[<NUM_LIT:1>:])<EOL>kwargs[name] = store[key]<EOL><DEDENT><DEDENT><DEDENT>for name, field_data in fields.items():<EOL><INDENT>fps = field_data.pop('<STR_LIT:data>')<EOL>kwargs[name] = Field(fps, field_values=[field_data[str(arr)] for arr in<EOL>sorted(map(int, field_data.keys()))])<EOL><DEDENT>return cls(**kwargs)<EOL>
Load a container object from a persistent location or file path.

Args:
    pkid_or_path: Integer pkid corresponding to the container table or file path

Returns:
    container: The saved container object