code: def get_max_label_map_index(label_map):
      """Get maximum index in label map.
  
      Args:
        label_map: a StringIntLabelMapProto
  
      Returns:
        an integer
      """
      return max([item.id for item in label_map.item])
  
imports: from absl import logging
  from six.moves import range
label_desc: Use image node_id 3 for calling a global function with example usage: get_max_label_map_index(label_map) and returns: max