code: def test_create_annotation_track(self):
      user = User.objects.all()[0]
      len_annotation_track = AnnotationTrack.objects.count()
      data = {
          "item": self.item_url,
          "title": "test_create_annotation_track",
          "author": "/api/users/" + str(user.username) + "/",
          "is_public": False,
      }
      annotation_track = self.client.post(
          "/api/annotation_tracks/", data
      )
      self.assertEqual(annotation_track.status_code, 201)
      self.assertEqual(
          len_annotation_track + 1, AnnotationTrack.objects.count()
      )
  
      data = {
          "item": self.item_url,
          "title": "test_create_annotation_track_2",
          "author": "/api/users/" + str(user.username) + "/",
          "is_public": True,
      }
      annotation_track_2 = self.client.post(
          "/api/annotation_tracks/", data
      )
      self.assertEqual(annotation_track_2.status_code, 201)
      self.assertEqual(
          len_annotation_track + 2, AnnotationTrack.objects.count()
      )
  
      list_annotation_track = self.client.get("/api/annotation_tracks/")
      self.assertEqual(list_annotation_track.status_code, 200)
      self.assertEqual(
          len(list_annotation_track.data), len_annotation_track + 2
      )
  
      # test_privacy_of_annotation
  
      user = User.objects.create(username="usertest")
      self.client.force_authenticate(user)
      list_annotation_track = self.client.get("/api/annotation_tracks/")
      self.assertEqual(list_annotation_track.status_code, 200)
      self.assertEqual(
          len(list_annotation_track.data), len_annotation_track + 1
      )
  
imports: from timeside.server.tests.timeside_test_server import TimeSideTestServer
  from timeside.server.models import *
label_desc: Use image node_id 1 for calling the TestAnnotation obj's underlying member method code with example usage: obj.test_create_annotation_track() without return types