code: def mock_alloc(size):
      mem = MockMemory(size)
      return pinned_memory.PinnedMemoryPointer(mem, 0)
  
imports: import unittest
  from cupy.cuda import pinned_memory
label_desc: Use image node_id 1 for calling a global function with example usage: mock_alloc(size) and returns: pinned_memory