class_docstr: Use hardi_mat to calculate a reconstruction matrix from a gradient table
class_docstr_tok: ["Use","hardi_mat","to","calculate","a","reconstruction","matrix","from","a","gradient","table"]
code: def _format_arg(self, name, spec, value):
      if name == "bvecs":
          new_val = self._create_gradient_matrix(
              self.inputs.bvecs, self.inputs.bvals
          )
          return super()._format_arg("bvecs", spec, new_val)
      return super()._format_arg(name, spec, value)
  
imports: import os
  import re
  from ...utils.filemanip import fname_presuffix, split_filename, copyfile
  from ..base import TraitedSpec, File, traits, CommandLine, CommandLineInputSpec, isdefined
label_desc: Use image node_id 2 for calling the HARDIMat obj's underlying member method code with example usage: obj._format_arg(name, spec, value) and returns: super, super