code: def test_signature_with_errors():
      with pytest.raises(
          TypeError,
          match=r"inputs must be either None or mlflow.models.signature.Schema",
      ):
          ModelSignature(inputs=1)
  
      with pytest.raises(
          ValueError,
          match=r"At least one of inputs, outputs or params must be provided",
      ):
          ModelSignature()
  
imports: import json
  import numpy
  import pandas
  import pyspark
  import pytest
  from sklearn.ensemble import RandomForestRegressor
  import mlflow
  from mlflow.exceptions import MlflowException
  from mlflow.models import Model, ModelSignature, infer_signature, set_signature
  from mlflow.models.model import get_model_info
  from mlflow.types import DataType
  from mlflow.types.schema import Array, ColSpec, ParamSchema, ParamSpec, Schema, TensorSpec
label_desc: Use image node_id 13 for calling a global function with example usage: test_signature_with_errors() without return types