code: def cutoff_filter(
      d: np.ndarray, x: np.ndarray, cutoff=8.0
  ) -> np.ndarray:
      """Applies a cutoff filter on pairwise distances
  
      Parameters
      ----------
      d: np.ndarray
          Pairwise distances matrix. A numpy array of shape `(N, M)`
      x: np.ndarray
          Matrix of shape `(N, M)`
      cutoff: float, optional (default 8)
          Cutoff for selection in Angstroms
  
      Returns
      -------
      np.ndarray
          A `(N,M)` array with values where distance is too large thresholded to 0.
      """
      return np.where(d < cutoff, x, np.zeros_like(x))
  
file_path: deepchem/deepchem/dock/pose_scoring.py
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: cutoff_filter(d, x, cutoff) and returns: np