class_docstr: BagObj(obj)
  
  Convert attribute look-ups to getitems on the object passed in.
  
  Parameters
  ----------
  obj : class instance
      Object on which attribute look-up is performed.
  
  Examples
  --------
  >>> from numpy.lib._npyio_impl import BagObj as BO
  >>> class BagDemo:
  ...     def __getitem__(self, key): # An instance of BagObj(BagDemo)
  ...                                 # will call this method when any
  ...                                 # attribute look-up is required
  ...         result = "Doesn't matter what you want, "
  ...         return result + "you're gonna get this"
  ...
  >>> demo_obj = BagDemo()
  >>> bagobj = BO(demo_obj)
  >>> bagobj.hello_there
  "Doesn't matter what you want, you're gonna get this"
  >>> bagobj.I_can_be_anything
  "Doesn't matter what you want, you're gonna get this"
class_docstr_tok: ["BagObj","(","obj",")","Convert","attribute","look-ups","to","getitems","on","the","object","passed","in",".","Parameters","--","--","--","--","--","obj",":","class","instance","Object","on","which","attribute","look-up","is","performed",".","Examples","--","--","--","--",">",">",">","from","numpy.lib._npyio_impl","import","BagObj","as","BO",">",">",">","class","BagDemo",":","...","def","__getitem__","(","self",",","key",")",":","#","An","instance","of","BagObj","(","BagDemo",")","...","#","will","call","this","method","when","any","...","#","attribute","look-up","is","required","...","result","=","``","Does","n't","matter","what","you","want",",","``","...","return","result","+","``","you","'re","gon","na","get","this","''","...",">",">",">","demo_obj","=","BagDemo","(",")",">",">",">","bagobj","=","BO","(","demo_obj",")",">",">",">","bagobj.hello_there","''","Does","n't","matter","what","you","want",",","you","'re","gon","na","get","this","''",">",">",">","bagobj.I_can_be_anything","''","Does","n't","matter","what","you","want",",","you","'re","gon","na","get","this","''"]
docstr: Enables dir(bagobj) to list the files in an NpzFile.
  
  This also enables tab-completion in an interpreter or IPython.
docstr_tok: ["Enables","dir","(","bagobj",")","to","list","the","files","in","an","NpzFile",".","This","also","enables","tab-completion","in","an","interpreter","or","IPython","."]
code: def __dir__(self):
      """
      Enables dir(bagobj) to list the files in an NpzFile.
  
      This also enables tab-completion in an interpreter or IPython.
      """
      return list(object.__getattribute__(self, "_obj").keys())
  
imports: import os
  import re
  import functools
  import itertools
  import warnings
  import weakref
  import contextlib
  import operator
  from operator import itemgetter, index, methodcaller
  from collections.abc import Mapping
  import pickle
  import numpy
  from .None import format
  from ._datasource import DataSource
  from numpy._core import overrides
  from numpy._core.multiarray import packbits, unpackbits
  from numpy._core._multiarray_umath import _load_from_filelike
  from numpy._core.overrides import set_array_function_like_doc, set_module
  from ._iotools import LineSplitter, NameValidator, StringConverter, ConverterError, ConverterLockError, ConversionWarning, _is_string_like, has_nested_fields, flatten_dtype, easy_dtype, _decode_line
  from numpy._utils import asunicode, asbytes
label_desc: Use image node_id 3 for calling the BagObj obj's underlying member method code with example usage: obj.__dir__() and returns: list