class_docstr: Base class for ANTS interfaces
docstr: Set the default number of threads for ITK calls
  
  This method is used to set the default number of ITK threads for all
  the ANTS interfaces. However, setting this will not update the output
  type for any existing instances.  For these, assign the
  <instance>.inputs.num_threads
docstr_tok: ["Set","the","default","number","of","threads","for","ITK","calls","This","method","is","used","to","set","the","default","number","of","ITK","threads","for","all","the","ANTS","interfaces",".","However",",","setting","this","will","not","update","the","output","type","for","any","existing","instances",".","For","these",",","assign","the","<","instance",">",".inputs.num_threads"]
code: def set_default_num_threads(cls, num_threads):
      """Set the default number of threads for ITK calls
  
      This method is used to set the default number of ITK threads for all
      the ANTS interfaces. However, setting this will not update the output
      type for any existing instances.  For these, assign the
      <instance>.inputs.num_threads
      """
      cls._num_threads = num_threads
  
file_path: nipype/nipype/interfaces/ants/base.py
imports: import os
  from packaging.version import Version, parse
  from ...None import logging
  from ..base import CommandLine, CommandLineInputSpec, traits, isdefined, PackageInfo
label_desc: Use image node_id 4 for calling the ANTSCommand obj's underlying member method code with example usage: obj.set_default_num_threads(cls, num_threads) without return types