code: def construct_package_dir(
      packages: List[str], package_path: _Path
  ) -> Dict[str, str]:
      parent_pkgs = remove_nested_packages(packages)
      prefix = Path(package_path).parts
      return {
          pkg: "/".join([*prefix, *pkg.split(".")])
          for pkg in parent_pkgs
      }
  
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 7 for calling a global function with example usage: construct_package_dir(packages, package_path) and returns: unknown