class_docstr: Don't add compiled flags to filenames of non-Python files
class_docstr_tok: ["Do","n't","add","compiled","flags","to","filenames","of","non-Python","files"]
docstr: >>> list(install_lib._all_packages('foo.bar.baz'))
  ['foo.bar.baz', 'foo.bar', 'foo']
docstr_tok: [">",">",">","list","(","install_lib._all_packages","(","'foo.bar.baz","'",")",")","[","'foo.bar.baz","'",",","'foo.bar","'",",","'foo","'","]"]
code: def _all_packages(pkg_name):
      """
      >>> list(install_lib._all_packages('foo.bar.baz'))
      ['foo.bar.baz', 'foo.bar', 'foo']
      """
      while pkg_name:
          yield pkg_name
          pkg_name, sep, child = pkg_name.rpartition(".")
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/command/install_lib.py
imports: import os
  import sys
  from itertools import product, starmap
  import distutils.command.install_lib
label_desc: Use image node_id 4 for calling the install_lib obj's underlying member method code with example usage: obj._all_packages(pkg_name) without return types