code: def test_ad_output_filenames():
      ad = ra.ArtifactDetect()
      outputdir = "/tmp"
      f = "motion.nii"
      (
          outlierfile,
          intensityfile,
          statsfile,
          normfile,
          plotfile,
          displacementfile,
          maskfile,
      ) = ad._get_output_filenames(f, outputdir)
      assert outlierfile == "/tmp/art.motion_outliers.txt"
      assert intensityfile == "/tmp/global_intensity.motion.txt"
      assert statsfile == "/tmp/stats.motion.txt"
      assert normfile == "/tmp/norm.motion.txt"
      assert plotfile == "/tmp/plot.motion.png"
      assert displacementfile == "/tmp/disp.motion.nii"
      assert maskfile == "/tmp/mask.motion.nii"
  
file_path: nipype/nipype/algorithms/tests/test_rapidart.py
imports: import numpy
  import numpy.testing
  from ..None import rapidart
  from ...interfaces.base import Bunch
label_desc: Use image node_id 2 for calling a global function with example usage: test_ad_output_filenames() without return types