code: def get_flip_min_max(coord, index, mins, maxs):
      if coord[index] == mins[index]:
          return maxs[index]
      else:
          return mins[index]
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import math
  import copy
  from matplotlib import lines, axis, patches
  from matplotlib import rcParams
  from .None import art3d
  from .None import proj3d
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: get_flip_min_max(coord, index, mins, maxs) and returns: maxs, mins