code: def _convert_list_tuple(data, allow_tuple, allow_list):
      if isinstance(data, list):
          if not allow_list and allow_tuple:
              return tuple(data)
      else:
          if not allow_tuple and allow_list:
              return list(data)
      return data
  
imports: import os
  import numpy
  from zoo.common import get_file_list
  from zoo.util.utils import convert_row_to_numpy
label_desc: Use image node_id 15 for calling a global function with example usage: _convert_list_tuple(data, allow_tuple, allow_list) and returns: data, tuple, list