def _calculate_tests_from_targets(self, targets):
    classpath_products = self.context.products.get_data('runtime_classpath')
    for target in targets:
      contents = ClasspathUtil.classpath_contents((target,), classpath_products, confs=self.confs)
      for f in contents:
        classname = ClasspathUtil.classname_for_rel_classfile(f)
        if classname:
          yield (classname, target)
Return all valid sub-indices of a pandas Index.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/jvm/tasks/junit_run.py/JUnitRun._calculate_tests_from_targets--crossover with--dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/all_subindices