code: def test_get_ptr(manager: SpillManager, target):
      if target == "gpu":
          mem = rmm.DeviceBuffer(size=10)
      elif target == "cpu":
          mem = np.empty(10, dtype="u1")
      buf = as_buffer(data=mem, exposed=False)
      assert buf.spillable
      assert len(buf.owner._spill_locks) == 0
      with acquire_spill_lock():
          buf.get_ptr(mode="read")
          assert not buf.spillable
          with acquire_spill_lock():
              buf.get_ptr(mode="read")
              assert not buf.spillable
          assert not buf.spillable
      assert buf.spillable
  
imports: import importlib
  import random
  import time
  import warnings
  import weakref
  from concurrent.futures import ThreadPoolExecutor
  from typing import List, Tuple
  import cupy
  import numpy
  import pandas
  import pandas.testing
  import pytest
  import rmm
  import cudf
  import cudf.core.buffer.spill_manager
  import cudf.options
  from cudf.core.abc import Serializable
  from cudf.core.buffer import Buffer, acquire_spill_lock, as_buffer, get_spill_lock
  from cudf.core.buffer.spill_manager import SpillManager, get_global_manager, get_rmm_memory_resource_stack, set_global_manager
  from cudf.core.buffer.spillable_buffer import SpillableBuffer, SpillableBufferOwner, SpillLock
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 21 for calling a global function with example usage: test_get_ptr(manager, target) without return types