register widget class not written in theme

include that file in your functions.php file like

require_once('includes/custom-widgets.php');

then you can call add_action() hook, in your case

add_action('widgets_init', 'SER_register_widgets'); .

the idea is to make that function ( ser_register_widgets ) visible in current php file ( functions.php file in this case )