code: def test_optional_from_2seq(self):
      obj = self.num2seq
      shape = (len(obj),)
      a = self.array(shape, intent.optional, obj)
      assert a.arr.shape == shape
      assert not a.has_shared_memory()
  
imports: import os
  import sys
  import copy
  import platform
  import pytest
  from pathlib import Path
  import numpy
  from numpy.testing import assert_, assert_equal
  from numpy._core._type_aliases import c_names_dict
  from .None import util
label_desc: Use image node_id 22 for calling the TestSharedMemory obj's underlying member method code with example usage: obj.test_optional_from_2seq() without return types