class_docstr: Base class for representing a dataset. Meant to be subclassed, with
  subclasses implementing the `get_model` function. 
class_docstr_tok: ["Base","class","for","representing","a","dataset",".","Meant","to","be","subclassed",",","with","subclasses","implementing","the","`","get_model","`","function","."]
docstr: Convenience method for overriding arguments. (Internal)
docstr_tok: ["Convenience","method","for","overriding","arguments",".","(","Internal",")"]
code: def override_args(self, default_args, kwargs):
      """
      Convenience method for overriding arguments. (Internal)
      """
      for k in kwargs:
          if not (k in default_args):
              continue
          req_type = type(default_args[k])
          no_nones = (default_args[k] is not None) and (
              kwargs[k] is not None
          )
          if no_nones and (not isinstance(kwargs[k], req_type)):
              raise ValueError(
                  f"Argument {k} should have type {req_type}"
              )
      return {**default_args, **kwargs}
  
imports: import pathlib
  import torch
  import torch.utils.data
  from .None import imagenet_models, cifar_models
  from torchvision import transforms, datasets
  from .tools import constants
  from .tools import openimgs_helpers
  from .None import data_augmentation
  from .None import loaders
  from .tools.helpers import get_label_mapping
label_desc: Use image node_id 2 for calling the DataSet obj's underlying member method code with example usage: obj.override_args(default_args, kwargs) and returns: dict