code: def calculate_digits(thresholds):
      digits = [len(str(t)) - 2 for t in thresholds]
      return max(max(digits), 1)
  
file_path: model-analysis/tensorflow_model_analysis/addons/fairness/metrics/fairness_indicators.py
imports: import collections
  from typing import Any, Dict, List, Optional, Sequence
  from tensorflow_model_analysis.metrics import binary_confusion_matrices
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: calculate_digits(thresholds) and returns: max