code: def circ_dist(x, y):
      """
      Computes the pairwise circular distance between two arrays of
      points (in radians).
  
      Parameters
      ----------
          x: numpy vector of positions on a circle, in radians.
          y: numpy vector of positions on a circle, in radians.
  
      Returns
      -------
          r: numpy vector of distances between inputs.
      """
      if x.size != y.size:
          raise ValueError(
              "Input sizes must match to compute pairwise "
              "comparisons."
          )
      r = np.angle(np.exp(x * 1j) / np.exp(y * 1j))
      return r
  
imports: import numpy
  import re
  import warnings
  import os.path
  import psutil
  from .fmrisim import generate_stimfunction, _double_gamma_hrf, convolve_hrf
  from scipy.fftpack import fft, ifft
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: circ_dist(x, y) and returns: r