import base64
import dill


def deserialize_obj(obj: str) -> str:
    """Deserialize given object with the following steps:
        1. Decode it using base64 to obtain bytes representation.
        2. Load it into an object using dill.
    """
    obj_dill = base64.b64decode(obj)
    obj_str = dill.loads(obj_dill)
    return obj_str