code: def makedir(self):
          
          try:
              os.makedirs(self.model_dir)
          except OSError as exception:
              if exception.errno != errno.EEXIST:
                  raise
docs: Create model_dir directory