code: def _shard_width(num_shards):
      """Return the width of the shard matcher based on the number of shards."""
      return max(5, int(math.floor(math.log10(num_shards)) + 1))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import os
  import re
  from typing import List, Tuple
  from etils import epath
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: _shard_width(num_shards) and returns: max