class_docstr: Base support interface for NiftyReg commands.
class_docstr_tok: ["Base","support","interface","for","NiftyReg","commands","."]
code: def _omp_update(self):
      if self.inputs.omp_core_val:
          self.inputs.environ["OMP_NUM_THREADS"] = str(
              self.inputs.omp_core_val
          )
          self.num_threads = self.inputs.omp_core_val
      else:
          if "OMP_NUM_THREADS" in self.inputs.environ:
              del self.inputs.environ["OMP_NUM_THREADS"]
          self.num_threads = 1
  
imports: import os
  from packaging.version import Version
  from ...None import logging
  from ..base import CommandLine, CommandLineInputSpec, traits, Undefined, PackageInfo
  from ...utils.filemanip import split_filename
label_desc: Use image node_id 2 for calling the NiftyRegCommand obj's underlying member method code with example usage: obj._omp_update() without return types