Write a Python function to return the GCD (Greatest Common Denominator) of two integers.
num_1 = 12
num_2 = 24
def gcd(num_1, num_2):
  if num_2 == 0:
    return num_1
  return gcd(num_2, num_1 % num_2)