code: def copy_random_pointer_v2(head):
      """
      :type head: RandomListNode
      :rtype: RandomListNode
      """
      copy = defaultdict(lambda: RandomListNode(0))
      copy[None] = None
      node = head
      while node:
          copy[node].label = node.label
          copy[node].next = copy[node.next]
          copy[node].random = copy[node.random]
          node = node.next
      return copy[head]
  
imports: from collections import defaultdict
label_desc: Use image node_id 2 for calling a global function with example usage: copy_random_pointer_v2(head) and returns: copy