def _check_is_const_tuple_with_scalar(self, param, expected_type, param_name):
        """
        This utility function checks the param is a Tuple of scalar with expected data type.
        """
        for x in param:
            if x.dtype != expected_type or x.shape != ():
                msg = "In op reshape_like {}, {} must be a Tuple of scalar {}. Got a {} tensor with shape {}.".format(
                    self.name, 
                    param_name,
                    expected_type.__type_info__(),
                    x.dtype.__type_info__(),
                    x.shape,
                )
                raise ValueError(msg)

        This utility function checks the param is a Tuple of scalar with expected data type.
        
coremltools/converters/mil/mil/ops/defs/iOS16/tensor_transformation.py