class_docstr: Perform B1 field inhomogeneity correction for a DWI volume series.
  
  For more information, see
  <https://mrtrix.readthedocs.io/en/latest/reference/scripts/dwibiascorrect.html>
  
  Example
  -------
  
  >>> import nipype.interfaces.mrtrix3 as mrt
  >>> bias_correct = mrt.DWIBiasCorrect()
  >>> bias_correct.inputs.in_file = 'dwi.mif'
  >>> bias_correct.inputs.use_ants = True
  >>> bias_correct.cmdline
  'dwibiascorrect ants dwi.mif dwi_biascorr.mif'
  >>> bias_correct.run()                             # doctest: +SKIP
class_docstr_tok: ["Perform","B1","field","inhomogeneity","correction","for","a","DWI","volume","series",".","For","more","information",",","see","<","https",":","\/\/mrtrix.readthedocs.io\/en\/latest\/reference\/scripts\/dwibiascorrect.html",">","Example","--","--","--","-",">",">",">","import","nipype.interfaces.mrtrix3","as","mrt",">",">",">","bias_correct","=","mrt.DWIBiasCorrect","(",")",">",">",">","bias_correct.inputs.in_file","=","'dwi.mif'",">",">",">","bias_correct.inputs.use_ants","=","True",">",">",">","bias_correct.cmdline","'dwibiascorrect","ants","dwi.mif","dwi_biascorr.mif'",">",">",">","bias_correct.run","(",")","#","doctest",":","+SKIP"]
code: def _format_arg(self, name, trait_spec, value):
      if name in ("use_ants", "use_fsl"):
          ver = self.version
          # Changed in version 3.0, after release candidates
          if ver is not None and (
              ver[0] < "3" or ver.startswith("3.0_RC")
          ):
              return f"-{trait_spec.argstr}"
      return super()._format_arg(name, trait_spec, value)
  
imports: import os.path
  from ..base import CommandLine, CommandLineInputSpec, Directory, File, InputMultiObject, TraitedSpec, Undefined, isdefined, traits
  from .base import MRTrix3Base, MRTrix3BaseInputSpec
label_desc: Use image node_id 1 for calling the DWIBiasCorrect obj's underlying member method code with example usage: obj._format_arg(name, trait_spec, value) and returns: super, str, trait_spec