`n_nodes_samples` should be a Python `int` though, it should not prevent json conversion.