code: def _set_properties(self):
      with InTemporaryDirectory():
          run_matlab_script(
              r"""
  spm_path = spm('dir');
  spm_ver = spm('ver');
  fid = fopen('spm_stuff.txt', 'wt');
  fprintf(fid, '%s\n', spm_path);
  fprintf(fid, '%s\n', spm_ver);
  fclose(fid);
  """
          )
          with open("spm_stuff.txt") as fobj:
              lines = fobj.readlines()
      self._spm_path = lines[0].strip()
      self._spm_ver = lines[1].strip()
  
file_path: nipy/nipy/interfaces/spm.py
imports: import os
  import numpy
  from nibabel import load
  from nibabel.tmpdirs import InTemporaryDirectory
  from scipy.io import savemat
  from .matlab import run_matlab_script
label_desc: Use image node_id 2 for calling the SpmInfo obj's underlying member method code with example usage: obj._set_properties() without return types