code: def test_bool():
      class TestClassInputSpec(SPMCommandInputSpec):
          test_in = include_intercept = traits.Bool(field="testfield")
  
      class TestClass(spm.SPMCommand):
          input_spec = TestClassInputSpec
          _jobtype = "jobtype"
          _jobname = "jobname"
  
      dc = TestClass()  # dc = derived_class
      dc.inputs.test_in = True
      out = dc._make_matlab_command(dc._parse_inputs())
      assert (
          out.find("jobs{1}.spm.jobtype.jobname.testfield = 1;") > 0
      ), 1
      dc.inputs.use_v8struct = False
      out = dc._make_matlab_command(dc._parse_inputs())
      assert (
          out.find("jobs{1}.jobtype{1}.jobname{1}.testfield = 1;") > 0
      ), 1
  
file_path: nipype/nipype/interfaces/spm/tests/test_base.py
imports: import os
  import numpy
  import pytest
  from nipype.testing.fixtures import create_files_in_directory
  import nipype.interfaces.spm.base
  from nipype.interfaces.spm import no_spm
  import nipype.interfaces.matlab
  from nipype.interfaces.spm.base import SPMCommandInputSpec
  from nipype.interfaces.base import traits
label_desc: Use image node_id 8 for calling a global function with example usage: test_bool() without return types