code: def test_vizparams_pattern_parser(self):
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern=None,
      )
      self.assertEqual([], viz_params.feature_indices)
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern="1-3",
      )
      self.assertEqual([1, 2, 3], viz_params.feature_indices)
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern="3-1",
      )
      self.assertEqual([], viz_params.feature_indices)
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern="1-1",
      )
      self.assertEqual([1], viz_params.feature_indices)
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern="3, 1",
      )
      self.assertEqual([1, 3], viz_params.feature_indices)
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern="0-",
      )
      self.assertEqual([], viz_params.feature_indices)
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern="0-error",
      )
      self.assertEqual([], viz_params.feature_indices)
      viz_params = inference_utils.VizParams(
          x_min=1,
          x_max=10,
          examples=[],
          num_mutants=0,
          feature_index_pattern="0-3-5",
      )
      self.assertEqual([], viz_params.feature_indices)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import numpy
  import tensorflow
  from tensorflow_serving.apis import classification_pb2
  from tensorflow_serving.apis import predict_pb2
  from tensorflow_serving.apis import regression_pb2
  from utils import common_utils
  from utils import inference_utils
  from utils import platform_utils
  from utils import test_utils
label_desc: Use image node_id 23 for calling the InferenceUtilsTest obj's underlying member method code with example usage: obj.test_vizparams_pattern_parser() without return types