code: def make_one_folium(sz, a=1.0, noise=0.1, resample_fun=None):
      theta = np.linspace(0, 1, sz)
      if resample_fun is not None:
          theta = resample_fun(theta)
      theta -= 0.5
      theta *= 0.9 * np.pi
      theta = theta.reshape((-1, 1))
      r = a / 2 * (4 * np.cos(theta) - 1.0 / np.cos(theta))
      x = r * np.cos(theta) + np.random.rand(sz, 1) * noise
      y = r * np.sin(theta) + np.random.rand(sz, 1) * noise
      return np.array(np.hstack((x, y)))
  
imports: import matplotlib.pyplot
  import numpy
  from tslearn.metrics import dtw_path, ctw_path
label_desc: Use image node_id 3 for calling a global function with example usage: make_one_folium(sz, a, noise, resample_fun) and returns: np