def METHOD_NAME(self):
    self.shape = self.case["shape"]
    self.value = self.case["value"]
    self.dtype = self.case["dtype"]
    if isinstance(self.value, str):
        dtypes = ["bool", "int", "float"]
        for dtype in dtypes:
            if dtype in self.dtype:
                try:
                    self.value = eval(f"{dtype}(self.value)")
                except:
                    self.value = eval(f"{dtype}(0)")