code: def test_endpoint_span_extractor_can_build_from_params(self):
      params = Params(
          {
              "type": "endpoint",
              "input_dim": 7,
              "num_width_embeddings": 5,
              "span_width_embedding_dim": 3,
          }
      )
      extractor = SpanExtractor.from_params(params)
      assert isinstance(extractor, EndpointSpanExtractor)
      assert extractor.get_output_dim() == 17
  
file_path: allennlp/tests/modules/span_extractors/endpoint_span_extractor_test.py
imports: import numpy
  import torch
  from allennlp.modules.span_extractors import SpanExtractor, EndpointSpanExtractor
  from allennlp.common.params import Params
  from allennlp.nn.util import batched_index_select
label_desc: Use image node_id 1 for calling the TestEndpointSpanExtractor obj's underlying member method code with example usage: obj.test_endpoint_span_extractor_can_build_from_params() without return types