class_docstr: Generate a list of all Python packages found within a directory
class_docstr_tok: ["Generate","a","list","of","all","Python","packages","found","within","a","directory"]
docstr: Does a directory look like a package?
code: def _looks_like_package(path: _Path, _package_name: str) -> bool:
      """Does a directory look like a package?"""
      return os.path.isfile(os.path.join(path, "__init__.py"))
  
imports: import itertools
  import os
  from fnmatch import fnmatchcase
  from glob import glob
  from pathlib import Path
  from typing import TYPE_CHECKING, Dict, Iterable, Iterator, List, Mapping, Optional, Tuple, Union
  import _distutils_hack.override
  from distutils import log
  from distutils.util import convert_path
label_desc: Use image node_id 2 for calling the PackageFinder obj's underlying member method code with example usage: obj._looks_like_package(path, _package_name) and returns: os