code: def test_curate_pileup(self):
      # Use the same pileup array for all of the channels.
      # It has 4 reads, 2 of which are high values throughout the read, one read
      # is all low values, and one read is high values except 2 lower-value bases.
      channels = [_mock_pileup_array_with_reads() for _ in range(6)]
      tags = vis.curate_pileup(channels)
  
      # One read plus a few bases are low quality:
      self.assertEqual(tags.base_quality, vis.BaseQuality.BAD)
      # One fully low quality read out of four is enough to be "bad" mapq:
      self.assertEqual(tags.mapping_quality, vis.MappingQuality.BAD)
      # Not enough reads to get a p-value below 0.05 for strand bias:
      self.assertEqual(tags.strand_bias, vis.StrandBias.GOOD)
      # Many differences (large fraction of high values):
      self.assertEqual(tags.diff_category, vis.Diff.MANY_DIFFS)
      # One of four reads supporting is interpreted as roughly heterozygous:
      self.assertEqual(tags.read_support, vis.ReadSupport.HALF)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import glob
  import os
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import vis
  from tensorflow.core.example import example_pb2
  from tensorflow.core.example import feature_pb2
label_desc: Use image node_id 27 for calling the VisTest obj's underlying member method code with example usage: obj.test_curate_pileup() without return types