code: def test_valid_corner():
      # *doesn't* fail for constant when < 2 samples
      approx(x=[1], y=[1], xout=[], method="constant", ties="ordered")
  
file_path: pmdarima/pmdarima/arima/tests/test_approx.py
imports: from pmdarima.arima.approx import approx, _regularize
  from pmdarima.utils.array import c
  from pmdarima.arima.stationarity import ADFTest
  from numpy.testing import assert_array_almost_equal
  import numpy
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_valid_corner() without return types