def METHOD_NAME(self, mock_isfile):
    mock_isfile.return_value = True
    open_mocked = mock.mock_open(read_data=SONIC_VERISON_YML)
    with mock.patch("{}.open".format(BUILTINS), open_mocked):
        for _ in range(0,5):
            assert device_info.get_sonic_version_info() == SONIC_VERISON_YML_RESULT
        # Assert the file was read only once
        open_mocked.assert_called_once_with(device_info.SONIC_VERSION_YAML_PATH)