code: def paths_from_env(env=None) -> Iterator[Path]:
      return (Path(p) for p in os.get_exec_path(env) if p)
  
imports: from __future__ import annotations
  import logging
  import os
  import re
  import shutil
  import sys
  from collections.abc import Iterable, Iterator
  from itertools import chain
  from pathlib import Path
  from typing import Any, Callable, TypeVar
  from packaging.version import InvalidVersion, Version
label_desc: Use image node_id 9 for calling a global function with example usage: paths_from_env(env) and returns: unknown