parameters: (method)
return_statement: return new_method
docstring: Wrapper method to check the parameters of plugin.
docstring_summary: Wrapper method to check the parameters of plugin.
docstring_tokens: Wrapper method to check the parameters of plugin .
function: def check_plugin(method):
      """Wrapper method to check the parameters of plugin."""
  
      @wraps(method)
      def new_method(self, *args, **kwargs):
          [lib_path, func_name, user_args], _ = parse_user_args(method, *args, **kwargs)
  
          type_check(lib_path, (str,), "lib_path")
          type_check(func_name, (str,), "func_name")
          if user_args is not None:
              type_check(user_args, (str,), "user_args")
  
          return method(self, *args, **kwargs)
  
      return new_method
function_tokens: def check_plugin ( method ) : @ wraps ( method ) def new_method ( self , * args , * * kwargs ) : [ lib_path , func_name , user_args ] , _ = parse_user_args ( method , * args , * * kwargs ) type_check ( lib_path , ( str , ) , "lib_path" ) type_check ( func_name , ( str , ) , "func_name" ) if user_args is not None : type_check ( user_args , ( str , ) , "user_args" ) return method ( self , * args , * * kwargs ) return new_method