def get(f, key, default=None):
if key in f.keys():<EOL><INDENT>val = f[key].value<EOL>if default is None:<EOL><INDENT>return val<EOL><DEDENT>else:<EOL><INDENT>if _np.shape(val) == _np.shape(default):<EOL><INDENT>return val<EOL><DEDENT><DEDENT><DEDENT>return default<EOL>
Gets an array from datasets.

.. versionadded:: 1.4