def METHOD_NAME(self):
    """Create a directory used for output.
    """
    # output dir
    if self.args.output:
        output_dir = Path(self.args.output).expanduser()
        output_dir.mkdir(parents=True, exist_ok=True)
    else:
        output_dir = Path(
            self.args.checkpoint_path).expanduser().parent.parent
        output_dir.mkdir(parents=True, exist_ok=True)
    self.output_dir = output_dir