def METHOD_NAME(self):
    with self.assertRaisesRegex(
        EnvironmentError,
        "hf-internal-testing/config-no-model does not appear to have a file named flax_model.msgpack",
    ):
        _ = FlaxAutoModel.from_pretrained("hf-internal-testing/config-no-model")