oob_importances internally uses _generate_unsampled_indices which is a private function within scikit-learn. In scikit-learn 0.22.1 the function signature of _generate_unsampled_indices has changed from
_generate_unsampled_indices(random_state, n_samples) to
_generate_unsampled_indices(random_state, n_samples, n_samples_bootstrap) .
This signature change can be seen here
oob_importancesinternally uses_generate_unsampled_indiceswhich is a private function within scikit-learn. In scikit-learn 0.22.1 the function signature of_generate_unsampled_indiceshas changed from_generate_unsampled_indices(random_state, n_samples)to_generate_unsampled_indices(random_state, n_samples, n_samples_bootstrap).This signature change can be seen here