code: def test_log_figure_raises_error_for_unsupported_figure_object_type():
      with mlflow.start_run(), pytest.raises(
          TypeError, match="Unsupported figure object type"
      ):
          mlflow.log_figure("not_figure", "figure.png")
  
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 6 for calling a global function with example usage: test_log_figure_raises_error_for_unsupported_figure_object_type() without return types