code: def test_get_log_uri(cluster_info, expected_uri):
      emr_client = MagicMock()
      emr_client.describe_cluster.return_value = cluster_info
      assert (
          get_log_uri(
              cluster=None,
              emr_client=emr_client,
              job_flow_id="test_job_flow_id",
          )
          == expected_uri
      )
  
file_path: airflow/tests/providers/amazon/aws/links/test_emr.py
imports: from __future__ import annotations
  from unittest.mock import MagicMock
  import pytest
  from airflow.providers.amazon.aws.links.emr import EmrClusterLink, EmrLogsLink, get_log_uri
  from tests.providers.amazon.aws.links.test_base_aws import BaseAwsLinksTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_log_uri(cluster_info, expected_uri) without return types