if kwargs.get('dtype', None) is None:
          self.match_dtype_and_type(
              actual,
              _NP_to_TF_result_inferred_types[expected.dtype],
              WeakTensor,