def create_example_data_helper(example_filename):
 directory = os.path.dirname(__file__)
 directory = os.path.join(directory, 'json')
 example = os.path.join(directory, example_filename)
 def data_helper():
  with open(example) as fd:
   data = json.load(fd)
  return data
 return data_helper

def create_example_data_helper ( example_filename ) : directory = os . path . dirname ( __file__ ) directory = os . path . join ( directory , 'json' ) example = os . path . join ( directory , example_filename ) def data_helper ( ) : with open ( example ) as fd : data = json . load ( fd ) return data return data_helper
a function to generate example data helpers .