code: def _populate_token_position_histogram(
      token_proto: statistics_pb2.NaturalLanguageStatistics.TokenStatistics,
      stats: _TokenStats,
      num_histogram_buckets: int,
  ):
      """Populate the token position histogram."""
      positions = list(stats.positions.items())
      positions.sort(key=lambda x: x[0])
      for k, v in positions:
          low_value = float(k) / num_histogram_buckets
          high_value = float(k + 1) / num_histogram_buckets
          token_proto.positions.buckets.add(
              low_value=low_value, high_value=high_value, sample_count=v
          )
  
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 11 for calling a global function with example usage: _populate_token_position_histogram(token_proto, stats, num_histogram_buckets) without return types