def get_pkg_names(pkgs):
result = set()<EOL>with open(join("<STR_LIT>"), "<STR_LIT:r>") as f:<EOL><INDENT>data = dict(x.strip().split("<STR_LIT::>") for x in f)<EOL><DEDENT>for pkg in pkgs:<EOL><INDENT>result.add(data.get(pkg, pkg))<EOL><DEDENT>return sorted(result, key=lambda s: s.lower())<EOL>
Get PyPI package names from a list of imports.

    Args:
        pkgs (List[str]): List of import names.

    Returns:
        List[str]: The corresponding PyPI package names.