code: def _make_divisible(
      v: float, divisor: int, min_value: Optional[int] = None
  ) -> int:
      """
      This function is taken from the original tf repo.
      It ensures that all layers have a channel number that is divisible by 8
      It can be seen here:
      https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet/mobilenet.py
      """
      if min_value is None:
          min_value = 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 < 0.9 * v:
          new_v += divisor
      return new_v
  
file_path: vision/torchvision/models/_utils.py
imports: import functools
  import inspect
  import warnings
  from collections import OrderedDict
  from typing import Any, Callable, Dict, Optional, Tuple, TypeVar, Union
  from torch import nn
  from .._utils import sequence_to_str
  from ._api import WeightsEnum
label_desc: Use image node_id 1 for calling a global function with example usage: _make_divisible(v, divisor, min_value) and returns: new_v