class_docstr: Custom error type for dimension checking.
  
  This error is used in recursive calls in check_niimg to keep track of the
  dimensionality of the data. Its final goal it to generate a user friendly
  message.
  
  Parameters
  ----------
  file_dimension : integer
      Indicates the dimensionality of the bottom-level nifti file.
  
  required_dimension : integer
      The dimension the nifti file should have.
class_docstr_tok: ["Custom","error","type","for","dimension","checking",".","This","error","is","used","in","recursive","calls","in","check_niimg","to","keep","track","of","the","dimensionality","of","the","data",".","Its","final","goal","it","to","generate","a","user","friendly","message",".","Parameters","--","--","--","--","--","file_dimension",":","integer","Indicates","the","dimensionality","of","the","bottom-level","nifti","file",".","required_dimension",":","integer","The","dimension","the","nifti","file","should","have","."]
code: def __str__(self):
      return self.message
  
label_desc: Use image node_id 4 for calling the DimensionError obj's underlying member method code with example usage: obj.__str__() and returns: self