code: def test_locally_span_extractor_can_build_from_params(self):
      params = Params(
          {
              "type": "max_pooling",
              "input_dim": 3,
              "num_width_embeddings": 5,
              "span_width_embedding_dim": 3,
          }
      )
      extractor = SpanExtractor.from_params(params)
      assert isinstance(extractor, MaxPoolingSpanExtractor)
      assert extractor.get_output_dim() == 6
  
file_path: allennlp/tests/modules/span_extractors/max_pooling_span_extractor_test.py
imports: import pytest
  import torch
  from allennlp.common.params import Params
  from allennlp.modules.span_extractors import SpanExtractor
  from allennlp.modules.span_extractors.max_pooling_span_extractor import MaxPoolingSpanExtractor
label_desc: Use image node_id 1 for calling the TestMaxPoolingSpanExtractor obj's underlying member method code with example usage: obj.test_locally_span_extractor_can_build_from_params() without return types