parameters: (method)
return_statement: return new_method
docstring: A wrapper method to check alpha parameter in RandomLighting.
docstring_summary: A wrapper method to check alpha parameter in RandomLighting.
docstring_tokens: A wrapper method to check alpha parameter in RandomLighting .
function: def check_alpha(method):
      """A wrapper method to check alpha parameter in RandomLighting."""
  
      @wraps(method)
      def new_method(self, *args, **kwargs):
          [alpha], _ = parse_user_args(method, *args, **kwargs)
          type_check(alpha, (float, int,), "alpha")
          check_non_negative_float32(alpha, "alpha")
  
          return method(self, *args, **kwargs)
  
      return new_method
function_tokens: def check_alpha ( method ) : @ wraps ( method ) def new_method ( self , * args , * * kwargs ) : [ alpha ] , _ = parse_user_args ( method , * args , * * kwargs ) type_check ( alpha , ( float , int , ) , "alpha" ) check_non_negative_float32 ( alpha , "alpha" ) return method ( self , * args , * * kwargs ) return new_method