code: def check(tokenizer_file) -> bool:
      with open(tokenizer_file, "r") as f:
          data = json.load(f)
      if "pre_tokenizer" not in data:
          return True
      if "type" not in data["pre_tokenizer"]:
          return False
      if data["pre_tokenizer"]["type"] == "Sequence":
          for pre_tok in data["pre_tokenizer"]["pretokenizers"]:
              if "type" not in pre_tok:
                  return False
      return True
  
file_path: hf-tokenizers/bindings/python/tests/test_serialization.py
imports: import json
  import os
  import unittest
  import tqdm
  from huggingface_hub import HfApi, cached_download, hf_hub_url
  from tokenizers import Tokenizer
  from .utils import albert_base, data_dir
label_desc: Use image node_id 1 for calling a global function with example usage: check(tokenizer_file) and returns: True, True, False, False