code: def assert_file_and_contents(
      file, needle, doesnt_contain=None, path=script_path, unlink=True
  ):
      assert_file_contains(assert_file_exists(file, path), needle)
      if doesnt_contain:
          assert_file_doesnt_contains(
              assert_file_exists(file, path), doesnt_contain
          )
      if unlink:
          Path(path, file).unlink()
  
file_path: flatbuffers/tests/flatc/flatc_test.py
imports: import argparse
  import platform
  import subprocess
  from pathlib import Path
label_desc: Use image node_id 9 for calling a global function with example usage: assert_file_and_contents(file, needle, doesnt_contain, path, unlink) without return types