code: def setup(self, n_samples, method):
      self.x = np.arange(n_samples)
      self.y = np.exp(-self.x / 3.0)
      self.interpolator = interpolate.interp1d(
          self.x, self.y, kind=method
      )
      self.xp = np.linspace(self.x[0], self.x[-1], 4 * n_samples)
  
imports: import numpy
  from .common import run_monitored, set_mem_rlimit, Benchmark, safe_import
label_desc: Use image node_id 1 for calling the Interpolate1d obj's underlying member method code with example usage: obj.setup(n_samples, method) without return types