code: def maybe_reverse_pad(topleft, bottomright):
      if cfg.BACKBONE.TF_PAD_MODE:
          return [topleft, bottomright]
      return [bottomright, topleft]
  
imports: import numpy
  import tensorflow
  from contextlib import ExitStack, contextmanager
  from tensorpack import tfv1
  from tensorpack.models import BatchNorm, Conv2D, MaxPooling, layer_register
  from tensorpack.tfutils import argscope
  from tensorpack.tfutils.scope_utils import auto_reuse_variable_scope
  from tensorpack.tfutils.varreplace import custom_getter_scope, freeze_variables
  from config import config
label_desc: Use image node_id 3 for calling a global function with example usage: maybe_reverse_pad(topleft, bottomright) and returns: list, list