import ast


def dict_str_eq(x, y):
   """ Check if dict object is equal to string object """
   assert(isinstance(x, dict))
   assert(isinstance(y, str))
   y = ast.literal_eval(y)
   assert(isinstance(y, dict))
   return x == y