()
| 102 | |
| 103 | @self_consistency(5, keys=['name', 'age', 'city'], mode='all') |
| 104 | def my_function(): |
| 105 | name = ['Alice', 'Bob'] |
| 106 | age = [28, 39] |
| 107 | city = ['New York', 'San Francisco'] |
| 108 | skills = ['Python', 'JavaScript', 'Java'] |
| 109 | output = { |
| 110 | 'name': random.choice(name), |
| 111 | 'age': random.choice(age), |
| 112 | 'city': random.choice(city), |
| 113 | 'skill': random.choices(skills, k=2), |
| 114 | } |
| 115 | print(output) |
| 116 | return output |
| 117 | |
| 118 | |
| 119 | class MyClass: |