code: def _get_all_lines(ax):
      lines = ax.get_lines()
  
      if hasattr(ax, "right_ax"):
          lines += ax.right_ax.get_lines()
  
      if hasattr(ax, "left_ax"):
          lines += ax.left_ax.get_lines()
  
      return lines
  
file_path: catboost/contrib/python/pandas/py2/pandas/plotting/_tools.py
imports: from __future__ import division
  from math import ceil
  import warnings
  import numpy
  from pandas.compat import range
  from pandas.core.dtypes.common import is_list_like
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries
label_desc: Use image node_id 8 for calling a global function with example usage: _get_all_lines(ax) and returns: lines