docstr: Compile all the files within a Python package dir.
docstr_tok: ["Compile","all","the","files","within","a","Python","package","dir","."]
code: def compile_package(self, path: Path, top_package_path: Path):
      """Compile all the files within a Python package dir."""
      assert path.is_dir()
      if path.name in DENY_LIST:
          self.msg(path, "X")
          return
  
      # Python packages are directories that have __init__.py in them.
      is_package_dir = any(
          child.name == "__init__.py" for child in path.iterdir()
      )
      if not is_package_dir:
          self.msg(path, "S")
          return
  
      self.msg(path, "P")
      # Recursively compile all children in this dir
      for child in path.iterdir():
          self.compile_path(child, top_package_path)
  
imports: import argparse
  import functools
  import itertools
  import marshal
  import os
  import types
  from dataclasses import dataclass
  from pathlib import Path
  from typing import List
label_desc: Use image node_id 7 for calling the Freezer obj's underlying member method code with example usage: obj.compile_package(path, top_package_path) without return types