code: def _gen_nspkg_line(self, pkg):
      # ensure pkg is not a unicode string under Python 2.7
      pkg = str(pkg)
      pth = tuple(pkg.split("."))
      root = self._get_root()
      tmpl_lines = self._nspkg_tmpl
      parent, sep, child = pkg.rpartition(".")
      if parent:
          tmpl_lines += self._nspkg_tmpl_multi
      return ";".join(tmpl_lines) % locals() + "\n"
  
file_path: catboost/contrib/python/setuptools/py2/setuptools/namespaces.py
imports: import os
  from distutils import log
  import itertools
  from setuptools.extern.six.moves import map
label_desc: Use image node_id 5 for calling the Installer obj's underlying member method code with example usage: obj._gen_nspkg_line(pkg) and returns: unknown