class_docstr: Defines a trait whose value must be a NIfTI file.
class_docstr_tok: ["Defines","a","trait","whose","value","must","be","a","NIfTI","file","."]
docstr: Create an ImageFileSPM trait.
code: def __init__(
      self,
      value=NoDefaultSpecified,
      exists=False,
      resolve=False,
      **metadata,
  ):
      """Create an ImageFileSPM trait."""
      super().__init__(
          value=value,
          exists=exists,
          types=["nifti1", "nifti2"],
          allow_compressed=False,
          resolve=resolve,
          **metadata,
      )
  
imports: import os
  from copy import deepcopy
  from nibabel import load
  import numpy
  from ...None import logging
  from ...utils import spm_docs
  from ..base import BaseInterface, traits, isdefined, InputMultiPath, BaseInterfaceInputSpec, Directory, Undefined, ImageFile, PackageInfo
  from ..base.traits_extension import NoDefaultSpecified
  from ..matlab import MatlabCommand
  from ...external.due import due, Doi, BibTeX
label_desc: Use image node_id 1 to create a new ImageFileSPM object from inherited base classes: ImageFile with example: obj = ImageFileSPM(value, exists, resolve)