code: def to_2tuple(x):
      if isinstance(x, (list, tuple)):
          return x
      return tuple([x] * 2)
  
file_path: PaddleDetection/ppdet/modeling/backbones/transformer_utils.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.initializer import TruncatedNormal, Constant, Assign
label_desc: Use image node_id 2 for calling a global function with example usage: to_2tuple(x) and returns: tuple, x