code: def shrink_bounds(bounds, coverage=0.99):
      """Shrinks the bounds. The new bounds will cover the fraction ``coverage``.
  
      >>> [round(x, 3) for x in shrink_bounds([0, 1], coverage=0.99)]
      [0.005, 0.995]
  
      """
  
      def shrink(lb, ub, coverage):
          new_range = float(ub - lb) * coverage / 2
          middle = float(ub + lb) / 2
          return [middle - new_range, middle + new_range]
  
      return dict(
          [(k, shrink(v[0], v[1], coverage)) for k, v in bounds.items()]
      )
  
imports: import abc
  import random
  import threading
label_desc: Use image node_id 4 for calling a global function with example usage: shrink_bounds(bounds, coverage) and returns: dict, list