code: def test_available_datasets_are_printed(eld, capsys):
      """If no key or url provided, print datasets.
  
      The output that is printed should be identical to the __repr__ output.
      Using capsys in pytest provides a way to capture stdout/stderr output.
  
      """
      eld.get_data()
      printed_output = capsys.readouterr().out
      print(eld)
      repr_output = capsys.readouterr().out
      assert printed_output == repr_output
  
imports: import os
  import requests
  import pytest
  import numpy
  import rasterio
  import geopandas
  import earthpy.io
label_desc: Use image node_id 12 for calling a global function with example usage: test_available_datasets_are_printed(eld, capsys) without return types