code: def test_data():
      def prepare_data(shape=(3, 3), pos1=0, pos2=0):
          data = np.reshape(np.arange(np.product(shape)), shape).astype(
              "float"
          )
          data[pos1, pos2] = np.nan
          return data
  
      return prepare_data
  
file_path: impyute/test/conftest.py
imports: import os
  import shutil
  import pytest
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_data() and returns: prepare_data, data