code: def test_ftype(self):
      ftype = self.module
      ftype.foo()
      assert_equal(ftype.data.a, 0)
      ftype.data.a = 3
      ftype.data.x = [1, 2, 3]
      assert_equal(ftype.data.a, 3)
      assert_array_equal(
          ftype.data.x, np.array([1, 2, 3], dtype=np.float32)
      )
      ftype.data.x[1] = 45
      assert_array_equal(
          ftype.data.x, np.array([1, 45, 3], dtype=np.float32)
      )
  
file_path: numpy/numpy/f2py/tests/test_docs.py
imports: import os
  import pytest
  import numpy
  from numpy.testing import assert_array_equal, assert_equal
  from .None import util
  from pathlib import Path
label_desc: Use image node_id 3 for calling the TestDocAdvanced obj's underlying member method code with example usage: obj.test_ftype() without return types