class_docstr: An argumentparser with default options, and compatibility with the Blender REPL.
class_docstr_tok: ["An","argumentparser","with","default","options",",","and","compatibility","with","the","Blender","REPL","."]
docstr: Same as argparse.ArgumentParser.set_defaults() but with safety checks.
docstr_tok: ["Same","as","argparse.ArgumentParser.set_defaults","(",")","but","with","safety","checks","."]
code: def set_defaults(self, **kwargs):
      """Same as argparse.ArgumentParser.set_defaults() but with safety checks."""
      valid_names = [action.dest for action in self._actions]
      for key in kwargs:
          assert (
              key in valid_names
          ), f"Specifying default for an undefined argument '{key}'"
      super().set_defaults(**kwargs)
  
imports: from absl.flags import argparse_flags
  import collections
  import copy
  import logging
  import multiprocessing
  import multiprocessing.pool
  import pathlib
  import pprint
  import shutil
  import sys
  import tempfile
  from etils import epath
  import numpy
  from kubric import core
  from kubric import file_io
label_desc: Use image node_id 3 for calling the ArgumentParser obj's underlying member method code with example usage: obj.set_defaults() without return types