code: def test_buan_bundle_profiles(rng):
      with TemporaryDirectory() as dirpath:
          data_path = get_fnames("fornix")
          fornix = load_tractogram(
              data_path, "same", bbox_valid_check=False
          ).streamlines
  
          f = Streamlines(fornix)
  
          mb = os.path.join(dirpath, "model_bundles")
  
          os.mkdir(mb)
  
          sft = StatefulTractogram(f, data_path, Space.RASMM)
          save_tractogram(
              sft, os.path.join(mb, "temp.trk"), bbox_valid_check=False
          )
  
          rb = os.path.join(dirpath, "rec_bundles")
          os.mkdir(rb)
  
          sft = StatefulTractogram(f, data_path, Space.RASMM)
          save_tractogram(
              sft, os.path.join(rb, "temp.trk"), bbox_valid_check=False
          )
  
          ob = os.path.join(dirpath, "org_bundles")
          os.mkdir(ob)
  
          sft = StatefulTractogram(f, data_path, Space.RASMM)
          save_tractogram(
              sft, os.path.join(ob, "temp.trk"), bbox_valid_check=False
          )
  
          dt = os.path.join(dirpath, "anatomical_measures")
          os.mkdir(dt)
  
          fa = rng.random((255, 255, 255))
  
          save_nifti(
              os.path.join(dt, "fa.nii.gz"), fa, affine=np.eye(4)
          )
  
          out_dir = os.path.join(dirpath, "output")
          os.mkdir(out_dir)
  
          buan_bundle_profiles(
              mb,
              rb,
              ob,
              dt,
              group_id=1,
              subject="10001",
              no_disks=100,
              out_dir=out_dir,
          )
  
          assert_true(
              os.path.exists(os.path.join(out_dir, "temp_fa.h5"))
          )
  
imports: import os
  from os.path import join
  from tempfile import TemporaryDirectory
  import numpy
  import numpy.testing
  import pytest
  from dipy.data import get_fnames
  from dipy.io.image import save_nifti, load_nifti
  from dipy.io.stateful_tractogram import Space, StatefulTractogram
  from dipy.io.streamline import load_tractogram, save_tractogram
  from dipy.testing import assert_true
  from dipy.testing.decorators import set_random_number_generator
  from dipy.tracking.streamline import Streamlines
  from dipy.utils.optpkg import optional_package
  from dipy.workflows.stats import SNRinCCFlow
  from dipy.workflows.stats import BundleAnalysisTractometryFlow
  from dipy.workflows.stats import LinearMixedModelsFlow
  from dipy.workflows.stats import BundleShapeAnalysis
  from dipy.workflows.stats import buan_bundle_profiles
label_desc: Use image node_id 2 for calling a global function with example usage: test_buan_bundle_profiles(rng) without return types