code: def test_split_code_and_text_blocks():
      """Test if a known example file gets properly split"""
  
      file_conf, blocks = sg.split_code_and_text_blocks(
          "examples/no_output/just_code.py"
      )
  
      assert file_conf == {}
      assert blocks[0][0] == "text"
      assert blocks[1][0] == "code"
  
imports: from __future__ import division, absolute_import, print_function, unicode_literals
  import ast
  import codecs
  import copy
  import logging
  import tempfile
  import re
  import os
  import shutil
  import zipfile
  import pytest
  import sphinx_gallery.gen_rst
  from sphinx_gallery import gen_gallery, downloads
  from sphinx_gallery.gen_gallery import generate_dir_rst
  from sphinx_gallery import sphinx_compatibility
  import matplotlib.pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: test_split_code_and_text_blocks() without return types