code: def _ensure_compatible_type(key, base, override):
      if base is None:
          return override
      if isinstance(override, type(base)):
          return override
      if isinstance(base, float) and isinstance(override, int):
          return float(override)
      base_type = type(base).__name__
      override_type = type(override).__name__
      raise ValueError(
          f'Expected "{key}" in override parameters to have type {base_type}, but found {override_type}'
      )
  
imports: import copy
  from enum import Enum, unique
  from pathlib import Path
  from schema import And
  from .None import parameter_expressions
label_desc: Use image node_id 8 for calling a global function with example usage: _ensure_compatible_type(key, base, override) and returns: override, override, float