code: def test_term_order_sub():
      # Test preservation of term order in subtraction
      f1 = F.Formula(terms("z, y, x, w"))
      f2 = F.Formula(terms("x, y, a"))
      assert_array_equal((f1 - f2).terms, terms("z, w"))
      assert_array_equal((f2 - f1).terms, terms("a"))
  
imports: from warnings import catch_warnings, simplefilter
  import numpy
  import pytest
  import sympy
  from numpy.core.records import fromrecords
  from numpy.testing import assert_almost_equal, assert_array_equal
  from sympy.utilities.lambdify import implemented_function
  from nipy.utils import VisibleDeprecationWarning
  from ..None import formulae
  from ..formulae import Term, terms
label_desc: Use image node_id 11 for calling a global function with example usage: test_term_order_sub() without return types