code: def test_agg_data():
      surf_gii_img = load(get_test_data("gifti", "ascii.gii"))
      func_gii_img = load(get_test_data("gifti", "task.func.gii"))
      shape_gii_img = load(get_test_data("gifti", "rh.shape.curv.gii"))
      # add timeseries data with intent code ``none``
  
      point_data = surf_gii_img.get_arrays_from_intent("pointset")[
          0
      ].data
      triangle_data = surf_gii_img.get_arrays_from_intent("triangle")[
          0
      ].data
      func_da = func_gii_img.get_arrays_from_intent("time series")
      func_data = np.column_stack(tuple(da.data for da in func_da))
      shape_data = shape_gii_img.get_arrays_from_intent("shape")[0].data
  
      assert surf_gii_img.agg_data() == (point_data, triangle_data)
      assert_array_equal(func_gii_img.agg_data(), func_data)
      assert_array_equal(shape_gii_img.agg_data(), shape_data)
  
      assert_array_equal(surf_gii_img.agg_data("pointset"), point_data)
      assert_array_equal(
          surf_gii_img.agg_data("triangle"), triangle_data
      )
      assert_array_equal(
          func_gii_img.agg_data("time series"), func_data
      )
      assert_array_equal(shape_gii_img.agg_data("shape"), shape_data)
  
      assert surf_gii_img.agg_data("time series") == ()
      assert func_gii_img.agg_data("triangle") == ()
      assert shape_gii_img.agg_data("pointset") == ()
  
      assert surf_gii_img.agg_data(("pointset", "triangle")) == (
          point_data,
          triangle_data,
      )
      assert surf_gii_img.agg_data(("triangle", "pointset")) == (
          triangle_data,
          point_data,
      )
  
imports: import itertools
  import sys
  import warnings
  from io import BytesIO
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from nibabel.tmpdirs import InTemporaryDirectory
  from ...None import load
  from ...fileholders import FileHolder
  from ...nifti1 import data_type_codes
  from ...testing import get_test_data
  from ..None import GiftiCoordSystem, GiftiDataArray, GiftiImage, GiftiLabel, GiftiLabelTable, GiftiMetaData, GiftiNVPairs
  from .test_parse_gifti_fast import DATA_FILE1, DATA_FILE2, DATA_FILE3, DATA_FILE4, DATA_FILE5, DATA_FILE6
label_desc: Use image node_id 1 for calling a global function with example usage: test_agg_data() without return types