code: def test_log_figure_raises_error_for_unsupported_file_extension(
      extension,
  ):
      from plotly import graph_objects as go
  
      filename = f"figure{extension}"
      artifact_file = posixpath.join(".", filename)
  
      fig = go.Figure(go.Scatter(x=[0, 1], y=[2, 3]))
  
      with mlflow.start_run(), pytest.raises(
          TypeError,
          match=f"Unsupported file extension for plotly figure: '{extension}'",
      ):
          mlflow.log_figure(fig, artifact_file)
  
file_path: mlflow/tests/tracking/test_log_figure.py
imports: import os
  import posixpath
  import uuid
  import pytest
  import mlflow
  from mlflow.utils.file_utils import local_file_uri_to_path
  from mlflow.utils.os import is_windows
label_desc: Use image node_id 5 for calling a global function with example usage: test_log_figure_raises_error_for_unsupported_file_extension(extension) without return types