code: def text_file(tmp_path):
      filename = tmp_path / "text.txt"
      data = textwrap.dedent(
          """\
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
          Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
          Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
          Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  
          Second paragraph:
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
          Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
          Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
          Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
          """
      )
      with open(filename, "w", encoding="utf-8") as f:
          f.write(data)
      return str(filename)
  
file_path: datasets/tests/packaged_modules/test_text.py
imports: import textwrap
  import pyarrow
  import pytest
  from datasets import Features, Image
  from datasets.packaged_modules.text.text import Text
  from ..utils import require_pil
label_desc: Use image node_id 1 for calling a global function with example usage: text_file(tmp_path) and returns: str