code: def test_can_init_scaled_dot(self):
      legacy_attention = Attention.from_params(
          Params({"type": "scaled_dot_product", "scaling_factor": 9})
      )
      isinstance(legacy_attention, ScaledDotProductAttention)
  
file_path: allennlp/tests/modules/attention/scaled_dot_product_attention_test.py
imports: import torch
  from numpy.testing import assert_almost_equal
  import numpy
  from allennlp.common import Params
  from allennlp.common.testing.test_case import AllenNlpTestCase
  from allennlp.modules.attention.attention import Attention
  from allennlp.modules.attention.scaled_dot_product_attention import ScaledDotProductAttention
label_desc: Use image node_id 1 for calling the TestScaledDotProductAttention obj's underlying member method code with example usage: obj.test_can_init_scaled_dot() without return types