code: def testLatestSpan_InvalidN(self):
      a1 = test_utils.DummyArtifact()
      a1.version = 1
  
      with self.assertRaisesRegex(ValueError, "n must be > 0"):
          self._latest_version([a1], n=-1)
  
file_path: tfx/tfx/dsl/input_resolution/ops/latest_version_op_test.py
imports: import tensorflow
  from tfx import types
  from tfx.dsl.input_resolution.ops import ops
  from tfx.dsl.input_resolution.ops import test_utils
label_desc: Use image node_id 6 for calling the LatestVersionOpTest obj's underlying member method code with example usage: obj.testLatestSpan_InvalidN() without return types