code: def _shard_width(num_shards: int) -> int:
      """Return the width of the shard matcher based on the number of shards."""
      return max(5, int(math.floor(math.log10(num_shards)) + 1))
  
file_path: scenic/scenic/projects/vivit/data/file_utils.py
imports: import math
  import re
  from typing import Iterator, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: _shard_width(num_shards) and returns: max