def METHOD_NAME(self, faker, num_samples):
    provider = CreditCardProvider(faker)
    for prefix in provider.prefix_visa:
        for _ in range(num_samples):
            number = provider._generate_number(prefix, 16)
            assert len(number) == 16
            assert self.visa_pattern.fullmatch(number)