def METHOD_NAME():
    """Validate error check, when nsamples is not an integer, while calling 'run' method."""
    with pytest.raises(BeartypeCallHintPepParamException):
        MonteCarloSampling(distributions=dist1, random_state=np.random.RandomState(123)).run(nsamples='abc')