code: def to_2tuple(x):
      if isinstance(x, (list, tuple)):
          return x
      return tuple([x] * 2)
  
imports: from collections.abc import Callable
  import numpy
  import paddle
  import paddle.nn
  from paddle.nn.initializer import TruncatedNormal, Constant, Normal
  from ppdet.core.workspace import register, serializable
label_desc: Use image node_id 1 for calling a global function with example usage: to_2tuple(x) and returns: tuple, x