code: def _p_continue_to_avg(p_continue: float, max_size: int) -> float:
      """Return the average_size generated by this p_continue and max_size."""
      if p_continue >= 1:
          return max_size
      return (1.0 / (1 - p_continue) - 1) * (1 - p_continue**max_size)
  
imports: import enum
  import hashlib
  import heapq
  import sys
  from collections import OrderedDict, abc
  from functools import lru_cache
  from typing import TYPE_CHECKING, List, Optional, Sequence, Tuple, Type, TypeVar, Union
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.compat import int_from_bytes
  from hypothesis.internal.floats import next_up
label_desc: Use image node_id 7 for calling a global function with example usage: _p_continue_to_avg(p_continue, max_size) and returns: unknown, max_size