code: def test_split_step_skips_profiling_when_specified(
      tmp_path, monkeypatch
  ):
      ingest_output_dir = tmp_path / "steps" / "ingest" / "outputs"
      ingest_output_dir.mkdir(parents=True)
      split_output_dir = tmp_path / "steps" / "split" / "outputs"
      split_output_dir.mkdir(parents=True)
  
      num_rows = 1000
      num_good_rows = 900
      input_dataframe = pd.DataFrame(
          {
              "a": list(range(num_rows)),
              "b": [str(i) for i in range(num_rows)],
              "y": [
                  float(i % 2) if i < num_good_rows else None
                  for i in range(num_rows)
              ],
          }
      )
      input_dataframe.to_parquet(
          str(ingest_output_dir / "dataset.parquet")
      )
  
      monkeypatch.setenv(
          MLFLOW_RECIPES_EXECUTION_DIRECTORY.name, str(tmp_path)
      )
      with mock.patch(
          "mlflow.recipes.utils.step.get_pandas_data_profiles"
      ) as mock_profiling, mock.patch(
          "mlflow.recipes.step.get_recipe_name",
          return_value="fake_name",
      ):
          split_step = SplitStep(
              {"target_col": "y", "skip_data_profiling": True},
              "fake_root",
          )
          split_step.run(str(split_output_dir))
  
      mock_profiling.assert_not_called()
  
imports: from pathlib import Path
  from unittest import mock
  from unittest.mock import Mock
  import numpy
  import pandas
  import pytest
  import mlflow
  from mlflow.environment_variables import MLFLOW_RECIPES_EXECUTION_DIRECTORY
  from mlflow.exceptions import MlflowException
  from mlflow.recipes.steps.split import _OUTPUT_TEST_FILE_NAME, _OUTPUT_TRAIN_FILE_NAME, _OUTPUT_VALIDATION_FILE_NAME, SplitStep, SplitValues, _get_split_df, _hash_pandas_dataframe, _make_elem_hashable, _validate_user_code_output
  from mlflow.recipes.utils import _RECIPE_CONFIG_FILE_NAME
  from mlflow.utils.file_utils import read_yaml
label_desc: Use image node_id 9 for calling a global function with example usage: test_split_step_skips_profiling_when_specified(tmp_path, monkeypatch) without return types