code: def _do_export_array(label, input_path, filename_maker):
      if isinstance(label, fol.Segmentation):
          mask_path = filename_maker.get_output_path(
              input_path, output_ext=".png"
          )
          label.export_mask(mask_path, update=True)
      elif isinstance(label, fol.Heatmap):
          map_path = filename_maker.get_output_path(
              input_path, output_ext=".png"
          )
          label.export_map(map_path, update=True)
  
file_path: fiftyone/fiftyone/utils/flash.py
imports: import inspect
  import itertools
  import numpy
  import fiftyone.core.labels
  import fiftyone.core.utils
  import flash
  import flash.core.classification
  import flash.image
  import flash.image.detection.output
  import flash.image.segmentation.output
  import flash.video
label_desc: Use image node_id 3 for calling a global function with example usage: _do_export_array(label, input_path, filename_maker) without return types