def METHOD_NAME(self):
    """
    Lists modules in the directory of this module (if this module is a
    package).
    """
    names = {}
    try:
        method = self.py__path__
    except AttributeError:
        pass
    else:
        for path in method():
            mods = iter_modules([path])
            for module_loader, name, is_pkg in mods:
                # It's obviously a relative import to the current module.
                names[name] = SubModuleName(self, name)
    # TODO add something like this in the future, its cleaner than the
    #   import hacks.
    # ``os.path`` is a hardcoded exception, because it's a
    # ``sys.modules`` modification.
    # if str(self.name) == 'os':
    #     names.append(Name('path', parent_context=self))
    return names