code: def _p_generate(
      pipe,
      prompt_ids,
      image,
      params,
      prng_seed,
      num_inference_steps,
      guidance_scale,
      latents,
      neg_prompt_ids,
      controlnet_conditioning_scale,
  ):
      return pipe._generate(
          prompt_ids,
          image,
          params,
          prng_seed,
          num_inference_steps,
          guidance_scale,
          latents,
          neg_prompt_ids,
          controlnet_conditioning_scale,
      )
  
imports: import warnings
  from functools import partial
  from typing import Dict, List, Optional, Union
  import jax
  import jax.numpy
  import numpy
  from flax.core.frozen_dict import FrozenDict
  from flax.jax_utils import unreplicate
  from flax.training.common_utils import shard
  from PIL import Image
  from transformers import CLIPFeatureExtractor, CLIPTokenizer, FlaxCLIPTextModel
  from ...models import FlaxAutoencoderKL, FlaxControlNetModel, FlaxUNet2DConditionModel
  from ...schedulers import FlaxDDIMScheduler, FlaxDPMSolverMultistepScheduler, FlaxLMSDiscreteScheduler, FlaxPNDMScheduler
  from ...utils import PIL_INTERPOLATION, logging, replace_example_docstring
  from ..pipeline_flax_utils import FlaxDiffusionPipeline
  from ..stable_diffusion import FlaxStableDiffusionPipelineOutput
  from ..stable_diffusion.safety_checker_flax import FlaxStableDiffusionSafetyChecker
label_desc: Use image node_id 1 for calling a global function with example usage: _p_generate(pipe, prompt_ids, image, params, prng_seed, num_inference_steps, guidance_scale, latents, neg_prompt_ids, controlnet_conditioning_scale) and returns: pipe