code: def flip_combination(flip_horizontal=False, flip_vertical=False):
      """
      Get flip combination.
  
      Args:
          flip_horizontal (bool): Whether to flip horizontally. Default: False.
          flip_vertical (bool): Whether to flip vertically. Default: False.
  
      Returns:
          list: List of tuple. The first element of tuple is whether to flip horizontally,
              and the second is whether to flip vertically.
      """
  
      flip_comb = [(False, False)]
      if flip_horizontal:
          flip_comb.append((True, False))
      if flip_vertical:
          flip_comb.append((False, True))
          if flip_horizontal:
              flip_comb.append((True, True))
      return flip_comb
  
file_path: PaddleSeg/contrib/AutoNUE/core/infer_crop.py
imports: import collections.abc
  from itertools import combinations
  import numpy
  import paddle
  import paddle.nn.functional
label_desc: Use image node_id 3 for calling a global function with example usage: flip_combination(flip_horizontal, flip_vertical) and returns: flip_comb