code: def _assert_n_smooth(x, n):
      x_orig = x
      if n < 2:
          assert False
  
      while True:
          q, r = divmod(x, 2)
          if r != 0:
              break
          x = q
  
      for d in range(3, n + 1, 2):
          while True:
              q, r = divmod(x, d)
              if r != 0:
                  break
              x = q
  
      assert x == 1, "x={} is not {}-smooth, remainder={}".format(
          x_orig, n, x
      )
  
imports: from scipy.fft._helper import next_fast_len, _init_nd_shape_and_axes
  from numpy.testing import assert_equal, assert_array_equal
  from pytest import raises
  import pytest
  import numpy
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_n_smooth(x, n) without return types