code: def test_data_point_equality():
      # example sentence
      sentence = Sentence("George Washington went to Washington .")
  
      # add two NER labels
      sentence[0:2].add_label("span_ner", "PER")
      sentence[0:2].add_label("span_other", "Politician")
      sentence[4].add_label("ner", "LOC")
      sentence[4].add_label("other", "Village")
  
      # get the four labels
      ner_label = sentence.get_label("ner")
      other_label = sentence.get_label("other")
      span_ner_label = sentence.get_label("span_ner")
      span_other_label = sentence.get_label("span_other")
  
      # check that only two of the respective data points are equal
      assert ner_label.data_point == other_label.data_point
      assert span_ner_label.data_point == span_other_label.data_point
      assert ner_label.data_point != span_other_label.data_point
      assert other_label.data_point != span_ner_label.data_point
  
file_path: flair/tests/test_labels.py
imports: from typing import List
  from flair.data import Label, Relation, Sentence, Span
label_desc: Use image node_id 7 for calling a global function with example usage: test_data_point_equality() without return types