code: def grep_dependencies(self, file, deps):
      stdout = self.get_dependencies(file)
  
      rdeps = dict(
          [(asbytes(dep), re.compile(asbytes(dep))) for dep in deps]
      )
      founds = []
      for l in stdout.splitlines():
          for k, v in rdeps.items():
              if v.search(l):
                  founds.append(k)
  
      return founds
  
file_path: catboost/contrib/python/scipy/py2/scipy/linalg/tests/test_build.py
imports: from __future__ import division, print_function, absolute_import
  from subprocess import call, PIPE, Popen
  import sys
  import re
  import pytest
  from numpy.testing import assert_
  from numpy.compat import asbytes
  from scipy.linalg import _flapack
label_desc: Use image node_id 3 for calling the FindDependenciesLdd obj's underlying member method code with example usage: obj.grep_dependencies(file, deps) and returns: founds