code: def test_text_filename_arguments_consistence(util):
      """Passing ``text`` or ``filename`` we obtain the same result."""
      clip_from_text = (
          TextClip(
              text="Hello",
              size=(20, 20),
              color="#000",
              bg_color="#FFF",
              method="caption",
              font=util.FONT,
          )
          .with_fps(1)
          .with_duration(1)
      )
  
      with open(
          os.path.join(util.TMP_DIR, "text-for-clip.txt"), "w"
      ) as f:
          f.write("Hello")
  
      clip_from_file = (
          TextClip(
              text="Hello",
              size=(20, 20),
              color="#000",
              bg_color="#FFF",
              method="caption",
              font=util.FONT,
          )
          .with_fps(1)
          .with_duration(1)
      )
  
      frames_from_text = list(clip_from_text.iter_frames())
      frames_from_file = list(clip_from_file.iter_frames())
      assert len(frames_from_text) == 1
      assert len(frames_from_file) == 1
      assert np.equal(frames_from_text[0], frames_from_file[0]).all()
  
file_path: moviepy/tests/test_TextClip.py
imports: import os
  import numpy
  import pytest
  from moviepy.video.fx.blink import blink
  from moviepy.video.VideoClip import TextClip
label_desc: Use image node_id 4 for calling a global function with example usage: test_text_filename_arguments_consistence(util) without return types