def extract_relevant_keys(target_dict, relevant_keys):
    """
    Extracts the relevant key-value pairs from the given dict. The relevant keys are passed in as
    a tuple of strings.
    """

    return {key: target_dict[key] for key in target_dict.keys() & relevant_keys}