docstr: Test if intent(in) array can be passed without copies
docstr_tok: ["Test","if","intent","(","in",")","array","can","be","passed","without","copies"]
code: def test_in_nocopy(self, write, order, inp):
      """Test if intent(in) array can be passed without copies"""
      seq = getattr(self, "num" + inp)
      obj = np.array(seq, dtype=self.type.dtype, order=order)
      obj.setflags(write=(write == "w"))
      a = self.array(
          obj.shape,
          ((order == "C" and intent.in_.c) or intent.in_),
          obj,
      )
      assert 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 6 for calling the TestSharedMemory obj's underlying member method code with example usage: obj.test_in_nocopy(write, order, inp) without return types