code: def test_span_ruler_overlapping_spans(overlapping_patterns):
      nlp = spacy.blank("xx")
      ruler = nlp.add_pipe("span_ruler")
      ruler.add_patterns(overlapping_patterns)
      doc = ruler(nlp.make_doc("foo bar baz"))
      assert len(doc.spans["ruler"]) == 2
      assert doc.spans["ruler"][0].label_ == "FOOBAR"
      assert doc.spans["ruler"][1].label_ == "BARBAZ"
  
imports: import pytest
  from thinc.api import NumpyOps, get_current_ops
  import spacy
  from spacy import registry
  from spacy.errors import MatchPatternError
  from spacy.tests.util import make_tempdir
  from spacy.tokens import Span
  from spacy.training import Example
label_desc: Use image node_id 16 for calling a global function with example usage: test_span_ruler_overlapping_spans(overlapping_patterns) without return types