def METHOD_NAME(conn):
    broker = {
        Specs.machine_id: context_wrap(lines=['dc194312-8cdd-4e75-8cf1-2094bfsfsdeff']),
        'client_config': InsightsConfig(legacy_upload=False)
    }
    result = dup_machine_id_info(broker)
    expected = DatasourceProvider(content=["dc194312-8cdd-4e75-8cf1-2094bfsfsdeff hostname1.compute.internal,hostname2.compute.internal"], relative_path='insights_commands/duplicate_machine_id_info')
    assert expected.content == result.content
    assert expected.relative_path == result.relative_path
    broker = {
        Specs.machine_id: context_wrap(lines=['dc194312-8cdd-4e75-8cf1-2094bfsfsdeff']),
        'client_config': InsightsConfig(legacy_upload=True)
    }
    result = dup_machine_id_info(broker)
    expected = DatasourceProvider(content=["dc194312-8cdd-4e75-8cf1-2094bfsfsdeff hostname1.compute.internal,hostname2.compute.internal"], relative_path='insights_commands/duplicate_machine_id_info')
    assert expected.content == result.content
    assert expected.relative_path == result.relative_path