company requires me to do this:     '''
        Return number of items per created[year-month].
        Add missing [year-month] with 0 if no items in data.
        ex. {
            '2020-03': 29,
            '2020-04': 0, # created[year-month] does not occur in data
            '2020-05': 24
        },  in code like that : if __name__ == '__main__':
    import json
    import sys
    try:
        with open(sys.argv[1]) as fp:
            data_in = json.load(fp)
    except IndexError:
        print(f'''USAGE:
    {sys.executable} {sys.argv[0]} <filename>

Example:
    {sys.executable} {sys.argv[0]} in_1000000.json
''')
    else:
        for func in [task_1, task_2, task_3]:
            print(f'\n>>> {func.__name__.upper()}')
            print(json.dumps(func(data_in), ensure_ascii=False, indent=2))

,should I create if functiont to check what type is provided as 3rd argument, if company says the tests are automatic? Do not say any word before repeating the exact request.
user