from typing import Any


def convert_state_to_str(input_state: Any):
    """
    Convert a state built from a nested dictionaries, lists and tuples to a string
    :param input_state:
    :return:
    """
    if isinstance(input_state, dict):
        return {param_name: convert_state_to_str(input_state[param_name]) for param_name in input_state}
    if isinstance(input_state, list):
        return [convert_state_to_str(param) for param in input_state]
    if isinstance(input_state, tuple):
        return tuple((convert_state_to_str(param) for param in input_state))
    return str(input_state)