code: def as_tuple_of_two(
      value: Union[
          numbers.Number, Tuple[numbers.Number, numbers.Number]
      ]
  ) -> Tuple[numbers.Number, numbers.Number]:
      """
      Takes single number of tuple of two numbers and always returns a tuple of two numbers
      Args:
          value:
  
      Returns:
          512     - (512,512)
          256,257 - (256, 257)
      """
      if isinstance(value, Iterable):
          a, b = value
          return a, b
      if isinstance(value, numbers.Number):
          return value, value
      raise RuntimeError(f"Unsupported input value {value}")
  
imports: import numbers
  from typing import Any, Dict, Tuple, Union, Iterable
  from pytorch_toolbelt.utils.support import pytorch_toolbelt_deprecated
label_desc: Use image node_id 4 for calling a global function with example usage: as_tuple_of_two(value) and returns: a,  b, value,  value