code: def init_flags(self, xp):
      if self.order == "non-contiguous":
          a = xp.empty(self.shape)[::2]
      else:
          a = xp.empty(self.shape, order=self.order)
      self.flags = a.flags
  
file_path: cupy/tests/cupy_tests/core_tests/test_flags.py
imports: import unittest
  from cupy._core import flags
  from cupy import testing
label_desc: Use image node_id 2 for calling the TestContiguityFlags obj's underlying member method code with example usage: obj.init_flags(xp) without return types