from typing import Mapping
from typing import Iterable


def copy_keys(mapping: Mapping, keys: Iterable) -> dict:
    """Copy values from mapping by keys."""
    return {key: mapping[key] for key in keys if key in mapping}