code: def test_intersect_edge_arrays():
      global t
      pts = np.array(
          [
              [0.0, 0.0],
              [0.0, 10.0],
              [5.0, 0.0],
              [-5.0, 0.0],
              [-1.0, 11.0],
              [1.0, 9.0],
          ]
      )
      edges = np.array(
          [
              [0, 1],
              [2, 3],
              [0, 3],
              [4, 5],
              [4, 1],
              [0, 1],
          ]
      )
  
      lines = pts[edges]
      t = T(pts, edges)
  
      # intersect array of one edge with a array of many edges
      intercepts = t._intersect_edge_arrays(lines[0:1], lines[1:])
      expect = np.array([0.5, 0.0, 0.5, 1.0, np.nan])
      assert_array_eq(intercepts, expect)
  
      # intersect every line with every line
      intercepts = t._intersect_edge_arrays(
          lines[:, np.newaxis, ...], lines[np.newaxis, ...]
      )
      for i in range(lines.shape[0]):
          int2 = t._intersect_edge_arrays(lines[i], lines)
          assert_array_eq(intercepts[i], int2)
  
file_path: vispy/vispy/geometry/tests/test_triangulation.py
imports: import sys
  from unittest import SkipTest
  import numpy
  from numpy.testing import assert_array_almost_equal
  from vispy.testing import run_tests_if_main
  from vispy.geometry.triangulation import Triangulation
label_desc: Use image node_id 2 for calling a global function with example usage: test_intersect_edge_arrays() without return types