code: def get_xlim(lines: Iterable[Line2D]) -> tuple[float, float]:
      left, right = np.inf, -np.inf
      for line in lines:
          x = line.get_xdata(orig=False)
          left = min(np.nanmin(x), left)
          right = max(np.nanmax(x), right)
      return left, right
  
imports: from __future__ import annotations
  from math import ceil
  from typing import TYPE_CHECKING, Iterable, Sequence
  import warnings
  from matplotlib import ticker
  import matplotlib.table
  import numpy
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.common import is_list_like
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndex, ABCSeries
label_desc: Use image node_id 13 for calling a global function with example usage: get_xlim(lines) and returns: left,  right