code: def copy_random_pointer_v1(head):
      """
      :type head: RandomListNode
      :rtype: RandomListNode
      """
      dic = dict()
      m = n = head
      while m:
          dic[m] = RandomListNode(m.label)
          m = m.next
      while n:
          dic[n].next = dic.get(n.next)
          dic[n].random = dic.get(n.random)
          n = n.next
      return dic.get(head)
  
imports: from collections import defaultdict
label_desc: Use image node_id 1 for calling a global function with example usage: copy_random_pointer_v1(head) and returns: dic