code: def test_serialize_input_data_invalid_format(
      input_data, content_type
  ):
      with pytest.raises(MlflowException):  # noqa: PT011
          _serialize_input_data(input_data, content_type)
  
file_path: mlflow/tests/models/test_python_api.py
imports: import datetime
  import sys
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import scipy.sparse
  import mlflow
  from mlflow.exceptions import MlflowException
  from mlflow.models.python_api import _CONTENT_TYPE_CSV, _CONTENT_TYPE_JSON, _serialize_input_data
  from mlflow.utils.env_manager import CONDA, VIRTUALENV
label_desc: Use image node_id 8 for calling a global function with example usage: test_serialize_input_data_invalid_format(input_data, content_type) without return types