from typing import Any
import ast


def detect_object_in_string(value: Any):
    """
    Detects if a list, a tuple or a dict is embeded in a 
    string and returns the true representation 
    of that element
    """
    return ast.literal_eval(value)