from typing import Optional
from typing import Any


def dict_get_value_by_key(dict_item: dict, key: str) -> Optional[Any[bool, int, float, str, list[Any], dict]]:
    """
    Find a value to a key if present, returns key or None otherwise.

    :param dict_item: A dictionary item to be searched in.
    :param key: The key to search for
    :return any: The value from key or None.
    """
    for _key, _value in dict_item.items():
        if _key == key:
            return _value
    return None