code: def _interpolate_with_limit_area(
      values: np.ndarray,
      method: str,
      limit: int | None,
      limit_area: str | None,
  ) -> None:
      """
      Apply interpolation and limit_area logic to values along a to-be-specified axis.
  
      Parameters
      ----------
      values: np.ndarray
          Input array.
      method: str
          Interpolation method. Could be "bfill" or "pad"
      limit: int, optional
          Index limit on interpolation.
      limit_area: str
          Limit area for interpolation. Can be "inside" or "outside"
  
      Notes
      -----
      Modifies values in-place.
      """
  
      invalid = isna(values)
      is_valid = ~invalid
  
      if not invalid.all():
          first = find_valid_index(
              values, how="first", is_valid=is_valid
          )
          if first is None:
              first = 0
          last = find_valid_index(values, how="last", is_valid=is_valid)
          if last is None:
              last = len(values)
  
          interpolate_2d(
              values,
              method=method,
              limit=limit,
          )
  
          if limit_area == "inside":
              invalid[first : last + 1] = False
          elif limit_area == "outside":
              invalid[:first] = invalid[last + 1 :] = False
  
          values[invalid] = np.nan
  
imports: from __future__ import annotations
  from functools import partial, wraps
  from typing import TYPE_CHECKING, Any, cast
  import numpy
  from pandas._libs import NaT, algos, lib
  from pandas._typing import ArrayLike, Axis, AxisInt, F, npt
  from pandas.compat._optional import import_optional_dependency
  from pandas.core.dtypes.cast import infer_dtype_from
  from pandas.core.dtypes.common import is_array_like, is_numeric_v_string_like, is_object_dtype, needs_i8_conversion
  from pandas.core.dtypes.missing import is_valid_na_for_dtype, isna, na_value_for_dtype
label_desc: Use image node_id 14 for calling a global function with example usage: _interpolate_with_limit_area(values, method, limit, limit_area) without return types