code: def test_valid_inputs(self, range_vals, full_range, val_type):
      output = utils.validate_and_clip_range(
          range_vals, full_range, val_type
      )
      assert isinstance(output, tuple)
      assert len(output) == 2
      if range_vals[0] is None:
          assert output[0] == full_range[0]
      else:
          assert output[0] == max(range_vals[0], full_range[0])
      if range_vals[1] is None:
          assert output[1] == full_range[1]
      else:
          assert output[1] == min(range_vals[1], full_range[1])
  
imports: import datetime
  import pathlib
  import pytest
  from textacy import utils
label_desc: Use image node_id 1 for calling the TestValidateAndClipRange obj's underlying member method code with example usage: obj.test_valid_inputs(range_vals, full_range, val_type) without return types