def find_package_consumers(name, deps_to_ignore=None):
  installed_packages = list(setuptools.package_index.AvailableDistributions())
  if deps_to_ignore is None:
    deps_to_ignore = []
  consumers = []
  for package_name in installed_packages:
    if name == package_name:
      continue
    package_info = setuptools.package_index.get_distribution(package_name)
    if package_name in deps_to_ignore:
      continue
    for req in package_info.requires():
      if req.project_name == name:
        consumers.append(package_name)
        break
  return consumers
dataset/ETHPy150Open google/encrypted-bigquery-client/remove_pyreadline.py/find_package_consumers/original