code: def _update_accumulator_reported_sequences(
      accumulator: _PartialNLStats,
      resolved_entry: List[Union[Text, int]],
      oov_string_tokens: Set[Text],
  ):
      """Update reported sequences in accumulator."""
      token_lens = [
          len(i)
          for i in resolved_entry
          if (isinstance(i, str) and i not in oov_string_tokens)
      ]
  
      coverage = float(len(token_lens)) / len(resolved_entry)
      if token_lens:
          avg_token_len = float(sum(token_lens)) / len(token_lens)
      else:
          avg_token_len = 0
  
      for attr, metric in [
          ("reported_sequences_coverage", coverage),
          ("reported_sequences_avg_token_length", avg_token_len),
      ]:
          cur_list = getattr(accumulator, attr)
          cur_list.append(
              _ReportedSequence(
                  sequence=resolved_entry,
                  hash_value=hash(str(resolved_entry)),
                  metric=metric,
              )
          )
          cur_list = _sort_and_truncate_reported_sequence(cur_list)
          setattr(accumulator, attr, cur_list)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from typing import Dict, Iterable, List, Optional, Set, Text, Union
  import pyarrow
  import six
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import stats_generator
  from tensorflow_data_validation.utils import quantiles_util
  from tensorflow_data_validation.utils import schema_util
  from tensorflow_data_validation.utils import stats_util
  from tensorflow_data_validation.utils import vocab_util
  from tfx_bsl import sketches
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
  from tfx_bsl.types import tfx_namedtuple
label_desc: Use image node_id 4 for calling a global function with example usage: _update_accumulator_reported_sequences(accumulator, resolved_entry, oov_string_tokens) without return types