Filter Category in Post Category Field

//Applies filter to form ID 4 only.
add_filter( 'gform_post_category_args_4', 'exclude_categories', 10, 2 );
function exclude_categories( $args, $field ) {
    $args['include'] = '56,57,58';
    return $args;
}