code: def test_tensorboard_log_graph_warning_no_example_input_array(
      tmp_path,
  ):
      """Test that log graph throws warning if model.example_input_array is None."""
      model = BoringModel()
      model.example_input_array = None
      logger = TensorBoardLogger(tmp_path, log_graph=True)
      with pytest.warns(
          UserWarning,
          match="Could not log computational graph to TensorBoard: The `model.example_input_array` .* was not given",
      ):
          logger.log_graph(model)
  
      model.example_input_array = {"x": 1, "y": 2}
      with pytest.warns(
          UserWarning,
          match="Could not log computational graph to TensorBoard: .* can't be traced by TensorBoard",
      ):
          logger.log_graph(model)
  
imports: import logging
  import os
  from argparse import Namespace
  from unittest import mock
  from unittest.mock import Mock
  import numpy
  import pytest
  import torch
  from lightning.fabric.loggers import TensorBoardLogger
  from lightning.fabric.loggers.tensorboard import _TENSORBOARD_AVAILABLE
  from lightning.fabric.wrappers import _FabricModule
  from tests_fabric.test_fabric import BoringModel
label_desc: Use image node_id 12 for calling a global function with example usage: test_tensorboard_log_graph_warning_no_example_input_array(tmp_path) without return types