code: def test_tempfilt(create_files_in_directory_plus_output_type):
      (
          files,
          testdir,
          out_ext,
      ) = create_files_in_directory_plus_output_type
  
      # Get the command
      filt = fsl.TemporalFilter(in_file="a.nii", out_file="b.nii")
  
      # Test the underlying command
      assert filt.cmd == "fslmaths"
  
      # Test that both filters are initialized off
      assert (
          filt.cmdline
          == "fslmaths a.nii -bptf -1.000000 -1.000000 b.nii"
      )
  
      # Test some filters
      windows = [(-1, -1), (0.1, 0.1), (-1, 20), (20, -1), (128, 248)]
      for win in windows:
          filt.inputs.highpass_sigma = win[0]
          filt.inputs.lowpass_sigma = win[1]
          assert (
              filt.cmdline
              == "fslmaths a.nii -bptf {:.6f} {:.6f} b.nii".format(
                  win[0], win[1]
              )
          )
  
      # Test that we don't need to ask for an out file
      filt = fsl.TemporalFilter(in_file="a.nii", highpass_sigma=64)
      assert (
          filt.cmdline
          == "fslmaths a.nii -bptf 64.000000 -1.000000 {}".format(
              os.path.join(testdir, f"a_filt{out_ext}")
          )
      )
  
imports: import os
  import numpy
  from nipype.interfaces.base import Undefined
  import nipype.interfaces.fsl.maths
  from nipype.interfaces.fsl import no_fsl
  import pytest
  from nipype.testing.fixtures import create_files_in_directory_plus_output_type
label_desc: Use image node_id 15 for calling a global function with example usage: test_tempfilt(create_files_in_directory_plus_output_type) without return types