code: def pandas_df_with_all_types():
      df = pd.DataFrame(
          {
              "boolean": [True, False, True],
              "integer": np.array([1, 2, 3], np.int32),
              "long": np.array([1, 2, 3], np.int64),
              "float": np.array(
                  [math.pi, 2 * math.pi, 3 * math.pi], np.float32
              ),
              "double": [math.pi, 2 * math.pi, 3 * math.pi],
              "binary": [
                  bytes([1, 2, 3]),
                  bytes([4, 5, 6]),
                  bytes([7, 8, 9]),
              ],
              "string": ["a", "b", "c"],
              "boolean_ext": [True, False, True],
              "integer_ext": [1, 2, 3],
              "string_ext": ["a", "b", "c"],
              "array": np.array(["a", "b", "c"]),
          }
      )
      df["boolean_ext"] = df["boolean_ext"].astype("boolean")
      df["integer_ext"] = df["integer_ext"].astype("Int64")
      df["string_ext"] = df["string_ext"].astype("string")
      return df
  
imports: import json
  import math
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import sklearn.neighbors
  from scipy.sparse import csc_matrix, csr_matrix
  from sklearn import datasets
  from sklearn.base import BaseEstimator, ClassifierMixin
  import mlflow
  from mlflow.models import Model
  from mlflow.models.signature import ModelSignature, infer_signature
  from mlflow.models.utils import _Example, _read_sparse_matrix_from_json, _read_tensor_input_from_json
  from mlflow.types import DataType
  from mlflow.types.schema import ColSpec, Schema, TensorSpec
  from mlflow.types.utils import TensorsNotSupportedException
  from mlflow.utils.file_utils import TempDir
  from mlflow.utils.proto_json_utils import dataframe_from_raw_json
  from tests.helper_functions import AnyStringWith
label_desc: Use image node_id 1 for calling a global function with example usage: pandas_df_with_all_types() and returns: df