code: def get_sort_indexes(data, sort_fn=None, top_n=None):
      if isinstance(data[0], list):
          return get_sort_indexes_2d(data, sort_fn=sort_fn, top_n=top_n)
      else:
          return get_sort_indexes_1d(data, sort_fn=sort_fn, top_n=top_n)
  
imports: import plotly.graph_objs
  import numpy
  from plotly import subplots
  import matplotlib.pyplot
  from numbers import Number
  import logging
label_desc: Use image node_id 17 for calling a global function with example usage: get_sort_indexes(data, sort_fn, top_n) and returns: get_sort_indexes_2d, get_sort_indexes_1d