code: def mock_auto_tokenizer():
      # from
      # https://github.com/deepset-ai/haystack/blob/b5aef24a7ebac55cb4ba492baf81a85598700b94/test/conftest.py#L908
      with patch(
          "transformers.AutoTokenizer.from_pretrained", autospec=True
      ) as mock_from_pretrained:
          yield mock_from_pretrained
  
file_path: h2o-llmstudio/tests/src/datasets/test_text_causal_language_modeling_ds.py
imports: from unittest import mock
  from unittest.mock import MagicMock, patch
  import numpy
  import pandas
  import pytest
  from llm_studio.app_utils.default_datasets import prepare_default_dataset_causal_language_modeling
  from llm_studio.python_configs.text_causal_language_modeling_config import ConfigNLPCausalLMDataset, ConfigNLPCausalLMTokenizer, ConfigProblemBase
  from llm_studio.src.datasets.text_causal_language_modeling_ds import CustomDataset
label_desc: Use image node_id 4 for calling a global function with example usage: mock_auto_tokenizer() without return types