code: def compute_conv_size(A_size, B_size, mode):
      if mode == "full":
          return A_size + B_size - 1
      elif mode == "same":
          return A_size
      elif mode == "valid":
          return abs(A_size - B_size) + 1
      else:
          raise Exception("Mode {0} not recognized".format(mode))
  
file_path: autograd/autograd/scipy/signal.py
imports: from __future__ import absolute_import
  from builtins import range, zip
  from functools import partial
  import autograd.numpy
  import numpy
  from autograd.extend import primitive, defvjp
  from numpy.lib.stride_tricks import as_strided
  from six import iteritems
label_desc: Use image node_id 5 for calling a global function with example usage: compute_conv_size(A_size, B_size, mode) and returns: unknown, A_size, unknown