def METHOD_NAME(self) -> bool:
    assert len(self.op_data) == 3, \
        f'BinaryElementwiseStrategyGenerator only accepts three operation data (input, other and output), but got {len(self.op_data)}'
    for name, op_data in self.op_data.items():
        if not isinstance(op_data.data, (torch.Tensor, int, float)):
            raise TypeError(f'The operation data {name} is not a torch.Tensor/int/float.')