code: def to_2tuple(x):
      if isinstance(x, int):
          return (x, x)
      else:
          return tuple(x)
  
imports: import math
  import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 for calling a global function with example usage: to_2tuple(x) and returns: x,  x, tuple