class_docstr: Base class for all Flax models.
  
  [`FlaxModelMixin`] takes care of storing the model configuration and provides methods for loading, downloading and
  saving models.
  
      - **config_name** ([`str`]) -- Filename to save a model to when calling [`~FlaxModelMixin.save_pretrained`].
code: def init_weights(self, rng: jax.Array) -> Dict:
      raise NotImplementedError(
          f"init_weights method has to be implemented for {self}"
      )
  
imports: import os
  from pickle import UnpicklingError
  from typing import Any, Dict, Union
  import jax
  import jax.numpy
  import msgpack.exceptions
  from flax.core.frozen_dict import FrozenDict, unfreeze
  from flax.serialization import from_bytes, to_bytes
  from flax.traverse_util import flatten_dict, unflatten_dict
  from huggingface_hub import create_repo, hf_hub_download
  from huggingface_hub.utils import EntryNotFoundError, RepositoryNotFoundError, RevisionNotFoundError
  from requests import HTTPError
  from ..None import __version__, is_torch_available
  from ..utils import CONFIG_NAME, DIFFUSERS_CACHE, FLAX_WEIGHTS_NAME, HUGGINGFACE_CO_RESOLVE_ENDPOINT, WEIGHTS_NAME, PushToHubMixin, logging
  from .modeling_flax_pytorch_utils import convert_pytorch_state_dict_to_flax
label_desc: Use image node_id 6 for calling the FlaxModelMixin obj's underlying member method code with example usage: obj.init_weights(rng) without return types