code: def py__iter__list(self):
      if type(self._obj) not in (
          str,
          list,
          tuple,
          unicode,
          bytes,
          bytearray,
          dict,
      ):
          # Get rid of side effects, we won't call custom `__getitem__`s.
          return []
  
      lst = []
      for i, part in enumerate(self._obj):
          if i > 20:
              # Should not go crazy with large iterators
              break
          lst.append(self._create_access_path(part))
      return lst
  
imports: import inspect
  import types
  import sys
  from textwrap import dedent
  import operator
  from collections import namedtuple
  from jedi._compatibility import unicode, is_py3, builtins, py_version, force_unicode, print_to_stderr
  from jedi.evaluate.compiled.getattr_static import getattr_static
label_desc: Use image node_id 11 for calling the DirectObjectAccess obj's underlying member method code with example usage: obj.py__iter__list() and returns: lst, list