code: def random_divisor(
      value: int, min_value: int, /, max_options: int = 1
  ) -> int:
      """
      Returns a random divisor of value that
          x * min_value <= value
      if max_options is 1, the behavior is deterministic
      """
      ns = get_divisors(
          value, min_value, max_options=max_options
      )  # get cached divisors
      idx = RNG_INSTANCE.randint(0, len(ns) - 1)
  
      return ns[idx]
  
file_path: stable-diffusion-webui/extensions-builtin/hypertile/hypertile.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Callable
  from functools import wraps, cache
  import math
  import torch.nn
  import random
  from einops import rearrange
label_desc: Use image node_id 2 for calling a global function with example usage: random_divisor(max_options) and returns: ns