docstr: Annotation Api: Test get annotation layer
docstr_tok: ["Annotation","Api",":","Test","get","annotation","layer"]
code: def test_get_annotation_layer(self):
      """
      Annotation Api: Test get annotation layer
      """
      annotation_layer = (
          db.session.query(AnnotationLayer)
          .filter(AnnotationLayer.name == "name1")
          .first()
      )
  
      self.login(username="admin")
      uri = f"api/v1/annotation_layer/{annotation_layer.id}"
      rv = self.get_assert_metric(uri, "get")
      assert rv.status_code == 200
  
      expected_result = {
          "id": annotation_layer.id,
          "name": "name1",
          "descr": "descr1",
      }
      data = json.loads(rv.data.decode("utf-8"))
      assert data["result"] == expected_result
  
imports: import json
  import pytest
  import prison
  from sqlalchemy.sql import func
  import tests.integration_tests.test_app
  from superset import db
  from superset.models.annotations import Annotation, AnnotationLayer
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.annotation_layers.fixtures import create_annotation_layers, get_end_dttm, get_start_dttm
  from tests.unit_tests.annotation_layers.fixtures import START_STR, END_STR
label_desc: Use image node_id 2 for calling the TestAnnotationLayerApi obj's underlying member method code with example usage: obj.test_get_annotation_layer() without return types