def get_data_path(f=''):
 (_, filename, _, _, _, _) = inspect.getouterframes(inspect.currentframe())[1]
 base_dir = os.path.abspath(os.path.dirname(filename))
 return os.path.join(base_dir, 'data', f)

def get_data_path ( f = '' ) : ( _ , filename , _ , _ , _ , _ ) = inspect . getouterframes ( inspect . currentframe ( ) ) [ 1 ] base_dir = os . path . abspath ( os . path . dirname ( filename ) ) return os . path . join ( base_dir , 'data' , f )
return the path to a file in the test data directory .