code: def lines_to_bokeh(
      lines: LineReturn,
      line_type: LineType,
  ) -> tuple[CoordinateArray | None, CoordinateArray | None]:
      lines = convert_lines(lines, line_type, LineType.ChunkCombinedNan)
      lines = dechunk_lines(lines, LineType.ChunkCombinedNan)
      if TYPE_CHECKING:
          lines = cast(LineReturn_ChunkCombinedNan, lines)
      points = lines[0][0]
      if points is None:
          return None, None
      else:
          return points[:, 0], points[:, 1]
  
file_path: catboost/contrib/python/contourpy/contourpy/util/bokeh_util.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, cast
  from contourpy import FillType, LineType
  from contourpy.array import offsets_from_codes
  from contourpy.convert import convert_lines
  from contourpy.dechunk import dechunk_lines
label_desc: Use image node_id 2 for calling a global function with example usage: lines_to_bokeh(lines, line_type) and returns: None,  None, points,  points