code: def test_url():
      # Test that object url appears in output svg.
  
      fig, ax = plt.subplots()
  
      # collections
      s = ax.scatter([1, 2, 3], [4, 5, 6])
      s.set_urls(
          ["https://example.com/foo", "https://example.com/bar", None]
      )
  
      # Line2D
      (p,) = plt.plot([1, 3], [6, 5])
      p.set_url("https://example.com/baz")
  
      b = BytesIO()
      fig.savefig(b, format="svg")
      b = b.getvalue()
      for v in [b"foo", b"bar", b"baz"]:
          assert b"https://example.com/" + v in b
  
imports: import datetime
  from io import BytesIO
  from pathlib import Path
  import xml.etree.ElementTree
  import xml.parsers.expat
  import pytest
  import numpy
  import matplotlib
  from matplotlib.figure import Figure
  from matplotlib.text import Text
  import matplotlib.pyplot
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  from matplotlib.testing._markers import needs_usetex
  from matplotlib import font_manager
  from matplotlib.offsetbox import OffsetImage, AnnotationBbox
label_desc: Use image node_id 15 for calling a global function with example usage: test_url() without return types