class_docstr: Base class for Flax-based pipelines.
  
  [`FlaxDiffusionPipeline`] stores all components (models, schedulers, and processors) for diffusion pipelines and
  provides methods for loading, downloading and saving models. It also includes methods to:
  
      - enable/disable the progress bar for the denoising iteration
  
  Class attributes:
  
      - **config_name** ([`str`]) -- The configuration filename that stores the class and module names of all the
        diffusion pipeline's components.
code: def register_modules(self, **kwargs):
      # import it here to avoid circular import
      from diffusers import pipelines
  
      for name, module in kwargs.items():
          if module is None:
              register_dict = {name: (None, None)}
          else:
              # retrieve library
              library = module.__module__.split(".")[0]
  
              # check if the module is a pipeline module
              pipeline_dir = module.__module__.split(".")[-2]
              path = module.__module__.split(".")
              is_pipeline_module = pipeline_dir in path and hasattr(
                  pipelines, pipeline_dir
              )
  
              # if library is not in LOADABLE_CLASSES, then it is a custom module.
              # Or if it's a pipeline module, then the module is inside the pipeline
              # folder so we set the library to module name.
              if library not in LOADABLE_CLASSES or is_pipeline_module:
                  library = pipeline_dir
  
              # retrieve class_name
              class_name = module.__class__.__name__
  
              register_dict = {name: (library, class_name)}
  
          # save model index config
          self.register_to_config(**register_dict)
  
          # set models
          setattr(self, name, module)
  
imports: import importlib
  import inspect
  import os
  from typing import Any, Dict, List, Optional, Union
  import flax
  import numpy
  import PIL.Image
  from flax.core.frozen_dict import FrozenDict
  from huggingface_hub import create_repo, snapshot_download
  from PIL import Image
  from tqdm.auto import tqdm
  from ..configuration_utils import ConfigMixin
  from ..models.modeling_flax_utils import FLAX_WEIGHTS_NAME, FlaxModelMixin
  from ..schedulers.scheduling_utils_flax import SCHEDULER_CONFIG_NAME, FlaxSchedulerMixin
  from ..utils import CONFIG_NAME, DIFFUSERS_CACHE, BaseOutput, PushToHubMixin, http_user_agent, is_transformers_available, logging
label_desc: Use image node_id 1 for calling the FlaxDiffusionPipeline obj's underlying member method code with example usage: obj.register_modules() without return types