def METHOD_NAME(self):
    """Initialize attributes for all test cases"""
    # Set class name for test cases, will be named by following rules: {class_name}{No}
    self.class_name = "TestDropoutInferOpCase"
    # Set base class for test cases
    self.cls = TestDropoutInferOp
    # Initialize shape for test cases
    self.inputs = [{
        "x_shape": [1],
    }, {
        "x_shape": [1024],
    }, {
        "x_shape": [512, 256],
    }, {
        "x_shape": [128, 64, 32],
    }, {
        "x_shape": [16, 8, 4, 2],
    }, {
        "x_shape": [16, 8, 4, 2, 1],
    }]
    # Initialize dtype for test cases
    self.dtypes = [{
        "x_dtype": "float32",
    }, {
        "x_dtype": "float64",
    }]
    # Initialize attributes for test cases
    self.attrs = [{
        "p": 0.1,
        "mode": "upscale_in_train"
    }, {
        "p": 0.5,
        "mode": "downscale_in_infer"
    }, {
        "p": 0.7,
        "mode": "upscale_in_train"
    }, {
        "p": 0.9,
        "mode": "downscale_in_infer"
    }]