code: def dinuc_count(seq):
      count = defaultdict(lambda: 0)
      for i in range(len(seq) - 2):
          count[seq[i : i + 2]] += 1
      return count
  
file_path: deeplift/tests/shuffling/test_dinuc_shuffle.py
imports: import unittest
  from deeplift.dinuc_shuffle import dinuc_shuffle
  from itertools import permutations
  from collections import defaultdict
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: dinuc_count(seq) and returns: count