def convert_types(type_dict):
    """
    Check dictionary on nested dictionaries, convert it into one dictionary without nested dictionaries
    
    :param type_dict: dictionary that can contain nested dictionaries
    :type: dict
    :return: dictionary contained data from type_dict without nested dictionary in it
    :type: dict
    """
    formatted_dict = {}
    for key, value in type_dict.items():
        if type(value) == dict:
            formatted_dict = {**formatted_dict, **convert_types(value)}
        else:
            formatted_dict = {**formatted_dict, **{key: value}}
    return formatted_dict