code: def test_resolve_overlap_conflicts_greedily(self):
      spans = [
          SpanInformation(
              start=1,
              end=5,
              no_label_prob=0.7,
              label_prob=0.2,
              label_index=2,
          ),
          SpanInformation(
              start=2,
              end=7,
              no_label_prob=0.5,
              label_prob=0.3,
              label_index=4,
          ),
      ]
      resolved_spans = self.model.resolve_overlap_conflicts_greedily(
          spans
      )
      assert resolved_spans == [
          SpanInformation(
              start=2,
              end=7,
              no_label_prob=0.5,
              label_prob=0.3,
              label_index=4,
          )
      ]
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/models/constituency_parser_test.py
imports: from __future__ import division
  from __future__ import absolute_import
  from nltk import Tree
  import torch
  from allennlp.common.testing.model_test_case import ModelTestCase
  from allennlp.models.constituency_parser import SpanInformation
  from allennlp.training.metrics import EvalbBracketingScorer
label_desc: Use image node_id 7 for calling the SpanConstituencyParserTest obj's underlying member method code with example usage: obj.test_resolve_overlap_conflicts_greedily() without return types