code: def make_data_file(contents):
      filename = yatest.common.output_path(hex(hash(contents))[-8:])
      open(filename, "wt").write(contents)
      return filename
  
imports: import pytest
  import yatest.common
  import os.path
label_desc: Use image node_id 2 for calling a global function with example usage: make_data_file(contents) and returns: filename