docstr: Youtube URLs should be transformed into embed links.
docstr_tok: ["Youtube","URLs","should","be","transformed","into","embed","links","."]
code: def test_youtube_urls_transformed_to_embed_links(self):
      """Youtube URLs should be transformed into embed links."""
      yt_urls = (
          "https://youtu.be/_T8LGqJtuGc",
          "https://www.youtube.com/watch?v=kmfC-i9WgH0",
          "https://www.youtube.com/embed/sSn4e1lLVpA",
      )
      yt_embeds = (
          "https://www.youtube.com/embed/_T8LGqJtuGc",
          "https://www.youtube.com/embed/kmfC-i9WgH0",
          "https://www.youtube.com/embed/sSn4e1lLVpA",
      )
      # url should be transformed into an embed link (or left alone).
      for x in range(0, len(yt_urls)):
          st.video(yt_urls[x])
          el = self.get_delta_from_queue().new_element
          self.assertEqual(el.video.url, yt_embeds[x])
  
file_path: streamlit/lib/tests/streamlit/elements/video_test.py
imports: from io import BytesIO
  import numpy
  import streamlit
  from streamlit.runtime.media_file_storage import MediaFileStorageError
  from streamlit.runtime.memory_media_file_storage import _calculate_file_id
  from streamlit.web.server.server import MEDIA_ENDPOINT
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 3 for calling the VideoTest obj's underlying member method code with example usage: obj.test_youtube_urls_transformed_to_embed_links() without return types