code: def test_detrend_str_linear_1d(self):
      input = self.sig_slope + self.sig_off
      target = self.sig_zeros
      self.allclose(mlab.detrend(input, key="linear"), target)
      self.allclose(
          mlab.detrend(input, key=mlab.detrend_linear), target
      )
      self.allclose(mlab.detrend_linear(input.tolist()), target)
  
imports: from numpy.testing import assert_allclose, assert_almost_equal, assert_array_equal, assert_array_almost_equal_nulp
  import numpy
  import pytest
  from matplotlib import mlab
label_desc: Use image node_id 10 for calling the TestDetrend obj's underlying member method code with example usage: obj.test_detrend_str_linear_1d() without return types