code: def test_design_inputs():
      # Check we can send in fields of type 'S', 'U', 'O' for design
      regf = F.Formula(F.terms("x, y"))
      f = F.Factor("f", ["a", "b"])
      ff = regf + f
      for field_type in ("S1", "U1", "O"):
          data = np.array(
              [(2, 3, "a"), (4, 5, "b"), (5, 6, "a")],
              dtype=[
                  ("x", np.float64),
                  ("y", np.float64),
                  ("f", field_type),
              ],
          )
          assert_array_equal(
              ff.design(data, return_float=True),
              [[2, 3, 1, 0], [4, 5, 0, 1], [5, 6, 1, 0]],
          )
  
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 17 for calling a global function with example usage: test_design_inputs() without return types