code: def test_get_tabular_examples_replaces_nan_with_str_nan():
      readme = """
          ---
          tags:
          - sklearn
          - skops
          - tabular-classification
          widget:
            structuredData:
              attribute_0:
              - material_7
              - material_7
              - material_7
              measurement_2:
              - 14.206
              - 15.094
              - .nan
          ---
      """
      mock_response = MagicMock()
      mock_response.status_code = 200
      mock_response.text = textwrap.dedent(readme)
  
      with patch(
          "gradio.external.httpx.get", return_value=mock_response
      ):
          examples = get_tabular_examples("foo-model")
          assert examples["measurement_2"] == [14.206, 15.094, "NaN"]
  
imports: import os
  import tempfile
  import textwrap
  import warnings
  from pathlib import Path
  from unittest.mock import MagicMock, patch
  import pytest
  from fastapi.testclient import TestClient
  from gradio_client import media_data
  from huggingface_hub import HfFolder
  import gradio
  from gradio.context import Context
  from gradio.exceptions import GradioVersionIncompatibleError, InvalidApiNameError
  from gradio.external import TooManyRequestsError, cols_to_rows, get_tabular_examples
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_tabular_examples_replaces_nan_with_str_nan() without return types