def FakerAttribute(provider, **kwargs):
 fake_gen = getattr(fake, provider)
 if (not fake_gen):
  raise ValueError('{0!r} is not a valid faker provider.'.format(provider))
 return LazyAttribute((lambda x: fake_gen(**kwargs)))

def FakerAttribute ( provider , ** kwargs ) : fake_gen = getattr ( fake , provider ) if ( not fake_gen ) : raise ValueError ( '{0!r} is not a valid faker provider.' . format ( provider ) ) return LazyAttribute ( ( lambda x : fake_gen ( ** kwargs ) ) )
attribute that lazily generates a value using the faker library .