code: def test_common_stats():
      data = {
          "Symbol": ["MSFT", "GOOG", "TSLA", "AAPL", "NFLX"],
          "Shares": [100, 50, 150, 200, None],
      }
      df = pd.DataFrame(data)
  
      common_stats = pandas_renderer.compute_common_stats(df["Symbol"])
      assert common_stats == text_format.Parse(
          """
          num_non_missing: 5
          num_missing: 0
          min_num_values: 1
          max_num_values: 1
          avg_num_values: 1.0
          """,
          facet_feature_statistics_pb2.CommonStatistics(),
      )
  
      common_stats = pandas_renderer.compute_common_stats(df["Shares"])
      assert common_stats == text_format.Parse(
          """
          num_missing: 1
          num_non_missing: 4
          min_num_values: 1
          max_num_values: 1
          avg_num_values: 1.0
          """,
          facet_feature_statistics_pb2.CommonStatistics(),
      )
  
file_path: mlflow/tests/recipes/cards/test_pandas_renderer.py
imports: import numpy
  import pandas
  import pytest
  from google.protobuf import text_format
  from mlflow.exceptions import MlflowException
  from mlflow.protos import facet_feature_statistics_pb2
  from mlflow.recipes.cards import pandas_renderer
label_desc: Use image node_id 4 for calling a global function with example usage: test_common_stats() without return types