code: def to_tuple(param, low=None, bias=None):
      """Convert input argument to min-max tuple
      Args:
          param (scalar, tuple or list of 2+ elements): Input value.
              If value is scalar, return value would be (offset - value, offset + value).
              If value is tuple, return value would be value + offset (broadcasted).
          low:  Second element of tuple can be passed as optional argument
          bias: An offset factor added to each element
      """
      if low is not None and bias is not None:
          raise ValueError(
              "Arguments low and bias are mutually exclusive"
          )
  
      if param is None:
          return param
  
      if isinstance(param, (int, float)):
          if low is None:
              param = -param, +param
          else:
              param = (low, param) if low < param else (param, low)
      elif isinstance(param, Sequence):
          if len(param) != 2:
              raise ValueError("to_tuple expects 1 or 2 values")
          param = tuple(param)
      else:
          raise ValueError(
              "Argument param must be either scalar (int, float) or tuple"
          )
  
      if bias is not None:
          return tuple(bias + x for x in param)
  
      return tuple(param)
  
imports: from __future__ import absolute_import
  import random
  from copy import deepcopy
  from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union, cast
  from warnings import warn
  import cv2
  import numpy
  from .serialization import Serializable, get_shortest_class_fullname
  from .utils import format_args
label_desc: Use image node_id 1 for calling a global function with example usage: to_tuple(param, low, bias) and returns: tuple, param, tuple