code: def make_divisible(v, divisor=8, min_value=None, round_limit=0.9):
      min_value = min_value or divisor
      new_v = max(min_value, int(v + divisor / 2) // divisor * divisor)
      # Make sure that round down does not go down by more than 10%.
      if new_v < round_limit * v:
          new_v += divisor
      return new_v
  
imports: from itertools import repeat
  import collections.abc
label_desc: Use image node_id 2 for calling a global function with example usage: make_divisible(v, divisor, min_value, round_limit) and returns: new_v