code: def test_locally_normalised_span_extractor_can_build_from_params(
      self,
  ):
      params = Params({"type": "self_attentive", "input_dim": 5})
      extractor = SpanExtractor.from_params(params)
      assert isinstance(extractor, SelfAttentiveSpanExtractor)
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/modules/span_extractors/self_attentive_span_extractor_test.py
imports: from __future__ import absolute_import
  import numpy
  import torch
  from allennlp.modules.span_extractors import SpanExtractor, SelfAttentiveSpanExtractor
  from allennlp.common.params import Params
label_desc: Use image node_id 1 for calling the TestSelfAttentiveSpanExtractor obj's underlying member method code with example usage: obj.test_locally_normalised_span_extractor_can_build_from_params() without return types