






"""simple docstring"""







def        SCREAMING_SNAKE_CASE       (      lowerCamelCase_):
					return credit_card_number.startswith(('''34''', '''35''', '''37''', '''4''', '''5''', '''6'''))





def        SCREAMING_SNAKE_CASE       (      lowerCamelCase_):
					a__          =  credit_card_number
					a__          =  0
					a__          =  len(lowerCamelCase_) - 2
					for i in range(lowerCamelCase_ ,     -1 ,     -2):
										#  double the value of every second digit
										a__          =  int(cc_number[i])
										digit *= 2
										# If doubling of a number results in a two digit number
										# i.e greater than 9(e.g., 6 × 2 = 12),
										# then add the digits of the product (e.g., 12: 1 + 2 = 3, 15: 1 + 5 = 6),
										# to get a single digit number.
										if digit > 9:
															digit %= 10
															digit += 1
										a__          =  cc_number[:i] + str(lowerCamelCase_) + cc_number[i + 1 :]
										total += digit

					# Sum up the remaining digits
					for i in range(len(lowerCamelCase_) - 1 ,     -1 ,     -2):
										total += int(cc_number[i])

					return total % 10 == 0





def        SCREAMING_SNAKE_CASE       (      lowerCamelCase_):
					a__          =  f'{credit_card_number} is an invalid credit card number because'
					if not credit_card_number.isdigit():
										print(f'{error_message} it has nonnumerical characters.')
										return False

					if not 13 <= len(lowerCamelCase_) <= 16:
										print(f'{error_message} of its length.')
										return False

					if not validate_initial_digits(lowerCamelCase_):
										print(f'{error_message} of its first two digits.')
										return False

					if not luhn_validation(lowerCamelCase_):
										print(f'{error_message} it fails the Luhn check.')
										return False

					print(f'{credit_card_number} is a valid credit card number.')
					return True


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	validate_credit_card_number('4111111111111111')
	validate_credit_card_number('32323')










"""simple docstring"""







__a       :	List[Any]             = frozenset(
    [
        'prompt',
        'height',
        'width',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
        'cross_attention_kwargs',
    ]
)

__a       :	Union[str, Any]             = frozenset(['prompt', 'negative_prompt'])

__a       :	Any             = frozenset([])

__a       :	Union[str, Any]             = frozenset(['image'])

__a       :	Dict             = frozenset(
    [
        'image',
        'height',
        'width',
        'guidance_scale',
    ]
)

__a       :	Dict             = frozenset(['image'])

__a       :	Dict             = frozenset(
    [
        'prompt',
        'image',
        'height',
        'width',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
    ]
)

__a       :	Optional[Any]             = frozenset(['prompt', 'image', 'negative_prompt'])

__a       :	List[Any]             = frozenset(
    [
        # Text guided image variation with an image mask
        'prompt',
        'image',
        'mask_image',
        'height',
        'width',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
    ]
)

__a       :	Union[str, Any]             = frozenset(['prompt', 'image', 'mask_image', 'negative_prompt'])

__a       :	Optional[Any]             = frozenset(
    [
        # image variation with an image mask
        'image',
        'mask_image',
        'height',
        'width',
        'guidance_scale',
    ]
)

__a       :	int             = frozenset(['image', 'mask_image'])

__a       :	Tuple             = frozenset(
    [
        'example_image',
        'image',
        'mask_image',
        'height',
        'width',
        'guidance_scale',
    ]
)

__a       :	Optional[Any]             = frozenset(['example_image', 'image', 'mask_image'])

__a       :	Optional[Any]             = frozenset(['class_labels'])

__a       :	Tuple             = frozenset(['class_labels'])

__a       :	int             = frozenset(['batch_size'])

__a       :	int             = frozenset([])

__a       :	Union[str, Any]             = frozenset(['batch_size'])

__a       :	Tuple             = frozenset([])

__a       :	Dict             = frozenset(
    [
        'prompt',
        'audio_length_in_s',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
        'cross_attention_kwargs',
    ]
)

__a       :	Dict             = frozenset(['prompt', 'negative_prompt'])
__a       :	Optional[int]             = frozenset(['input_tokens'])

__a       :	str             = frozenset(['input_tokens'])


