code: def fitting(self, value):
      self._fitting = value
      if self._fitting is not None:
          if not os.path.exists(dirname(self.checkpoint_path())):
              try:
                  os.makedirs(dirname(self.checkpoint_path()))
              except FileExistsError as ex:
                  pass  # race to create
  
          if not os.path.exists(dirname(self.tensorboard_path())):
              try:
                  os.makedirs(dirname(self.tensorboard_path()))
              except FileExistsError as ex:
                  pass
  
imports: import os
  from os.path import join, dirname
  import logging
  import botocore
  import lore
  from lore.util import timer
  from lore.env import require
  import h5py
label_desc: Use image node_id 8 for calling the Base obj's underlying member method code with example usage: obj.fitting(value) without return types