code: def test_mixed_path_and_name_is_an_error(self):
      stats = statistics_pb2.DatasetFeatureStatisticsList()
      text_format.Parse(
          """
      datasets: {
        name: 'All Examples'
        features: {
          path: {
            step: "f0_step1"
            step: "f0_step2"
          }
        }
        features: {
          name: "f1"
        }
      }
      """,
          stats,
      )
      view = stats_util.DatasetListView(stats).get_default_slice()
      with self.assertRaisesRegex(
          ValueError,
          (
              "Features must be specified with "
              "either path or name within a Dataset"
          ),
      ):
          view.get_feature(types.FeaturePath("f1"))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  from absl.testing import absltest
  import numpy
  import tensorflow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import artifacts_io_impl
  from tensorflow_data_validation.utils import stats_util
  from google.protobuf import text_format
  from tensorflow.python.util.protobuf import compare
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 18 for calling the DatasetListViewTest obj's underlying member method code with example usage: obj.test_mixed_path_and_name_is_an_error() without return types