code: def test_check_no_nans(self):
      check_no_nans(torch.tensor([1.0, 2.0]))
      with self.assertRaises(InputDataError):
          check_no_nans(torch.tensor([1.0, float("nan")]))
  
imports: import warnings
  import torch
  from botorch import settings
  from botorch.exceptions import InputDataError, InputDataWarning
  from botorch.models.utils import add_output_dim, check_min_max_scaling, check_no_nans, check_standardization, fantasize, gpt_posterior_settings, multioutput_to_batch_mode_transform, validate_input_scaling
  from botorch.models.utils.assorted import consolidate_duplicates, detect_duplicates
  from botorch.utils.testing import BotorchTestCase
  from gpytorch import settings
label_desc: Use image node_id 2 for calling the TestInputDataChecks obj's underlying member method code with example usage: obj.test_check_no_nans() without return types