code: def test_crossbow_email_report(load_fixture):
      expected_msg = load_fixture("email-report.txt")
      job = load_fixture("crossbow-job.yaml", decoder=yaml.load)
      report = Report(job)
      assert report.tasks_by_state is not None
      email_report = EmailReport(
          report=report,
          sender_name="Sender Reporter",
          sender_email="sender@arrow.com",
          recipient_email="recipient@arrow.com",
      )
  
      assert email_report.render("nightly_report") == textwrap.dedent(
          expected_msg
      )
  
file_path: arrow/dev/archery/archery/crossbow/tests/test_reports.py
imports: import textwrap
  from archery.crossbow.core import yaml
  from archery.crossbow.reports import ChatReport, CommentReport, EmailReport, Report
label_desc: Use image node_id 5 for calling a global function with example usage: test_crossbow_email_report(load_fixture) without return types