code: 
  
  
  '''simple docstring'''
  
  
  
  
  
  import warnings
  from collections.abc import Callable
  from typing import Any
  
  import numpy
  from matplotlib import pyplot
  
  UpperCAmelCase      :						Tuple    =		0.2_5 + 0.0J
  UpperCAmelCase      :						List[str]    =		-0.4 + 0.6J
  UpperCAmelCase      :						Dict    =		-0.1 + 0.6_51J
  UpperCAmelCase      :						Dict    =		-2.0
  UpperCAmelCase      :						Union[str, Any]    =		56
  UpperCAmelCase      :						Union[str, Any]    =		2.0
  UpperCAmelCase      :						List[Any]    =		6_66
  
  
  
  
  
  
  def   __lowerCamelCase	(       lowerCamelCase__		:	complex     ,       lowerCamelCase__		:	numpy.ndarray			):
  
  
  
  
  
  			'''simple docstring'''
  
  
  
  
  			return numpy.exp(lowerCamelCase__			) + c_parameter
  
  
  
  
  
  
  def   __lowerCamelCase	(       lowerCamelCase__		:	complex     ,       lowerCamelCase__		:	numpy.ndarray			):
  
  
  
  
  
  			'''simple docstring'''
  
  
  
  
  			return z_values * z_values + c_parameter
  
  
  
  
  
  
  def   __lowerCamelCase	(       lowerCamelCase__		:	float     ,       lowerCamelCase__		:	int			):
  
  
  
  
  
  			'''simple docstring'''
  
  
  
  
  			lowerCamelCase								=     numpy.linspace(-window_size     ,       lowerCamelCase__     ,       lowerCamelCase__			)
  			lowerCamelCase								=     x.reshape((nb_pixels, 1)			)
  			lowerCamelCase								=     numpy.linspace(-window_size     ,       lowerCamelCase__     ,       lowerCamelCase__			)
  			lowerCamelCase								=     y.reshape((1, nb_pixels)			)
  			return x + 1.0j * y
  
  
  
  
  
  
  def   __lowerCamelCase	(       lowerCamelCase__		:	Callable[[Any, numpy.ndarray], numpy.ndarray]     ,       lowerCamelCase__		:	Any     ,       lowerCamelCase__		:	int     ,       lowerCamelCase__		:	numpy.ndarray     ,       lowerCamelCase__		:	float | None = None     ,       ):
  
  
  
  
  
  			'''simple docstring'''
  
  
  
  
  			lowerCamelCase								=     z_a.astype("""complex64"""			)
  			for _ in range(lowerCamelCase__			):
  						lowerCamelCase								=     eval_function(lowerCamelCase__     ,       lowerCamelCase__			)
  						if infinity is not None:
  									numpy.nan_to_num(lowerCamelCase__     ,       copy=lowerCamelCase__     ,       nan=lowerCamelCase__			)
  									lowerCamelCase								=     infinity
  			return z_n
  
  
  
  
  
  
  def   __lowerCamelCase	(       lowerCamelCase__		:	str     ,       lowerCamelCase__		:	Any     ,       lowerCamelCase__		:	float     ,       lowerCamelCase__		:	numpy.ndarray     ,       ):
  
  
  
  
  
  			'''simple docstring'''
  
  
  
  
  			lowerCamelCase								=     (abs(lowerCamelCase__			)).transpose()
  			lowerCamelCase								=     abs_z_final[::-1, :]
  			pyplot.matshow(abs_z_final < escape_radius			)
  			pyplot.title(f'Julia set of ${function_label}$, $c={function_params}$'			)
  			pyplot.show()
  
  
  
  
  
  
  def   __lowerCamelCase	(       ):
  
  
  
  
  
  			'''simple docstring'''
  
  
  
  
  			warnings.filterwarnings(
  			    """ignore"""     ,       category=lowerCamelCase__     ,       message="""overflow encountered in multiply"""			)
  			warnings.filterwarnings(
  			    """ignore"""     ,       category=lowerCamelCase__     ,       message="""invalid value encountered in multiply"""     ,       )
  			warnings.filterwarnings(
  			    """ignore"""     ,       category=lowerCamelCase__     ,       message="""overflow encountered in absolute"""			)
  			warnings.filterwarnings(
  			    """ignore"""     ,       category=lowerCamelCase__     ,       message="""overflow encountered in exp"""			)
  
  
  if __name__ == "__main__":
  		UpperCAmelCase      :						List[str]    =		prepare_grid(window_size, nb_pixels)
  
  		ignore_overflow_warnings()  # See file header for explanations
  
  		UpperCAmelCase      :						Dict    =		24
  		UpperCAmelCase      :						Dict    =		2 * abs(c_cauliflower) + 1
  		UpperCAmelCase      :						Optional[int]    =		iterate_function(
  		    eval_quadratic_polynomial,
  		    c_cauliflower,
  		    nb_iterations,
  		    z_a,
  		    infinity=1.1 * escape_radius,
  		)
  		show_results("z^2+c", c_cauliflower, escape_radius, z_final)
  
  		UpperCAmelCase      :						Tuple    =		64
  		UpperCAmelCase      :						str    =		2 * abs(c_polynomial_a) + 1
  		UpperCAmelCase      :						List[str]    =		iterate_function(
  		    eval_quadratic_polynomial,
  		    c_polynomial_a,
  		    nb_iterations,
  		    z_a,
  		    infinity=1.1 * escape_radius,
  		)
  		show_results("z^2+c", c_polynomial_a, escape_radius, z_final)
  
  		UpperCAmelCase      :						List[Any]    =		1_61
  		UpperCAmelCase      :						Dict    =		2 * abs(c_polynomial_a) + 1
  		UpperCAmelCase      :						Optional[Any]    =		iterate_function(
  		    eval_quadratic_polynomial,
  		    c_polynomial_a,
  		    nb_iterations,
  		    z_a,
  		    infinity=1.1 * escape_radius,
  		)
  		show_results("z^2+c", c_polynomial_a, escape_radius, z_final)
  
  		UpperCAmelCase      :						Union[str, Any]    =		12
  		UpperCAmelCase      :						Optional[int]    =		1_00_00.0
  		UpperCAmelCase      :						Tuple    =		iterate_function(
  		    eval_exponential,
  		    c_exponential,
  		    nb_iterations,
  		    z_a + 2,
  		    infinity=1.0e10,
  		)
  		show_results("e^z+c", c_exponential, escape_radius, z_final)
  
  
style_context: 
  
  
  import warnings
  
  from .generation import FlaxGenerationMixin
  
  
  
  
  
  
  
  class 					__lowercase					(       a_     ):
  
  
  
  		"""simple docstring"""
  
  		warnings.warn(
  		    "Importing `FlaxGenerationMixin` from `src/transformers/generation_flax_utils.py` is deprecated and will "
  		    "be removed in Transformers v5. Import as `from transformers import FlaxGenerationMixin` instead." ,       a_ ,       )
  
  