Soroban
At the request of a friend who has just started learning soroban, you are asked to create a program that displays the arrangement of soroban beads. Create a program that takes a number as input and outputs the arrangement of soroban beads. However, assume that the number of digits to be displayed on the soroban is 5, and that the configuration of the beads for numbers 0 to 9 is represented by '*' (half-width asterisk), ' ' (half-width space), and '=' (half-width equal sign) as follows:
Input
Multiple test cases are given. Each test case consists of a single line containing a number (integer) of up to 5 digits.
The number of test cases does not exceed 1024.
Output
For each test case, output the arrangement of soroban beads. Put a blank line between the test cases.
Sample Input
2006
1111
Output for the Sample Input
****
*
=====
* *
****
* ***
*****
*****
*****
=====
****
*
*****
*****
*****
Canonicalized Input Description:
A list of strings, where each string is an integer of up to 5 digits. The number of strings does not exceed 1024.
### Example Input:
```
2006
1111
```
### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[str]):
'''
inputs: a list of strings
'''
```
Sure, here is a test case generator for the "Soroban" problem:
```python
import random
def generate_soroban_configuration(digit):
configurations = {
'0': [
"**** *",
"* *",
"*****",
"*****",
"*****",
"=====",
" "
],
'1': [
"**** ",
"* **",
"*****",
"*****",
"*****",
"=====",
" "
],
'2': [
"**** ",
"* ** ",
"*****",
"*****",
"*****",
"=====",
" "
],
'3': [
"**** ",
"* ***",
"*****",
"*****",
"*****",
"=====",
" "
],
'4': [
"**** ",
"* ***",
"*****",
"*****",
"*****",
"=====",
" "
],
'5': [
"**** ",
"* **",
"*****",
"*****",
"*****",
"=====",
" * "
],
'6': [
"**** ",
"* ",
"*****",
"*****",
"*****",
"=====",
" * "
],
'7': [
"**** ",
"* *",
"*****",
"*****",
"*****",
"=====",
" * * "
],
'8': [
"**** ",
"* *",
"*****",
"*****",
"*****",
"=====",
" * "
],
'9': [
"**** ",
"* *",
"*****",
"*****",
"*****",
"=====",
" * * "
],
}
return configurations[digit]
def generate_single_test_case():
number_of_test_cases = random.randint(1, 1024)
test_cases = []
for _ in range(number_of_test_cases):
num = str(random.randint(0, 99999)).zfill(5)
test_cases.append(num)
return test_cases
def tcgen():
test_cases = generate_single_test_case()
return test_cases
# Example of generating and printing test cases.
if __name__ == "__main__":
test_cases = tcgen()
for case in test_cases:
print(case)
```
This generator function `tcgen` creates a list of test cases, each of which is a number with up to 5 digits. The `generate_soroban_configuration` function provides the configuration of soroban beads for each digit from 0 to 9. You can use these configurations to output the arrangement of soroban beads for each number in the test cases.
def extract_arguments(fh):
inputs = []
for line in fh:
number = line.strip()
if number:
inputs.append(number)
return inputs
# if __name__ == "__main__":
# input_path = sys.argv[1]
# with open(input_path, 'r') as fh:
# inputs = extract_arguments(fh)
# f(inputs)