def METHOD_NAME(imsi_list: list, input_file: str):
    disable_static_rule_reqs = []
    rule_list = ["p1", "p2", "p3"]
    for index, imsi in enumerate(imsi_list):
        request = DisableStaticRuleRequest(
            imsi=imsi,
            rule_ids=rule_list,
            base_names=["bn1"],
        )
        request_dict = json_format.MessageToDict(request)
        # Dumping DisableStaticRule request into json
        disable_static_rule_reqs.append(request_dict)
    with open(input_file, 'w') as file:
        json.dump(disable_static_rule_reqs, file, separators=(',', ':'))