parameters: (method)
return_statement: return new_method
docstring: Wrapper method to check the parameters of mix up.
docstring_summary: Wrapper method to check the parameters of mix up.
docstring_tokens: Wrapper method to check the parameters of mix up .
function: def check_mix_up(method):
      """Wrapper method to check the parameters of mix up."""
  
      @wraps(method)
      def new_method(self, *args, **kwargs):
          [batch_size, alpha, is_single], _ = parse_user_args(method, *args, **kwargs)
          type_check(is_single, (bool,), "is_single")
          type_check(batch_size, (int,), "batch_size")
          type_check(alpha, (int, float), "alpha")
          check_value(batch_size, (1, FLOAT_MAX_INTEGER))
          check_positive(alpha, "alpha")
          return method(self, *args, **kwargs)
  
      return new_method
function_tokens: def check_mix_up ( method ) : @ wraps ( method ) def new_method ( self , * args , * * kwargs ) : [ batch_size , alpha , is_single ] , _ = parse_user_args ( method , * args , * * kwargs ) type_check ( is_single , ( bool , ) , "is_single" ) type_check ( batch_size , ( int , ) , "batch_size" ) type_check ( alpha , ( int , float ) , "alpha" ) check_value ( batch_size , ( 1 , FLOAT_MAX_INTEGER ) ) check_positive ( alpha , "alpha" ) return method ( self , * args , * * kwargs ) return new_method