class_docstr: This class implements the mixup algorithm [1] for natural language processing.
  
  [1] Zhang, Hongyi, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. "mixup: Beyond empirical risk
  minimization." in International Conference on Learning Representations (2018).
  https://openreview.net/forum?id=r1Ddp1-Rb
docstr: Validate input data
docstr_tok: ["Validate","input","data"]
code: def validate(**kwargs):
      """Validate input data"""
  
      if "data" in kwargs:
          if isinstance(kwargs["data"], list):
              kwargs["data"] = np.array(kwargs["data"])
          if not isinstance(kwargs["data"], np.ndarray):
              raise TypeError(
                  "data must be numpy array. Found "
                  + str(type(kwargs["data"]))
              )
      if "labels" in kwargs:
          if isinstance(kwargs["labels"], (list, type(None))):
              kwargs["labels"] = np.array(kwargs["labels"])
          if not isinstance(kwargs["labels"], np.ndarray):
              raise TypeError(
                  "labels must be numpy array. Found "
                  + str(type(kwargs["labels"]))
              )
      if "batch_size" in kwargs:
          if not isinstance(kwargs["batch_size"], int):
              raise TypeError(
                  "batch_size must be a valid integer. Found "
                  + str(type(kwargs["batch_size"]))
              )
      if "shuffle" in kwargs:
          if not isinstance(kwargs["shuffle"], bool):
              raise TypeError(
                  "shuffle must be a boolean. Found "
                  + str(type(kwargs["shuffle"]))
              )
      if "runs" in kwargs:
          if not isinstance(kwargs["runs"], int):
              raise TypeError(
                  "runs must be a valid integer. Found "
                  + str(type(kwargs["runs"]))
              )
  
imports: import numpy
  import random
label_desc: Use image node_id 1 for calling the MIXUP obj's underlying member method code with example usage: obj.validate() without return types