def _find_associations(self, resource_id, predicate, target_type=None, backward=False):
        assoc_list = []
        if backward:
            by_object = self.ctx['by_object'].get((resource_id,predicate), [])
            assoc_list.extend([(assoc.s, assoc) for assoc in by_object if not target_type or assoc.st in target_type])
        else:
            by_subject = self.ctx['by_subject'].get((resource_id,predicate), [])
            assoc_list.extend([(assoc.o, assoc) for assoc in by_subject if not target_type or assoc.ot in target_type])
        return assoc_list
Test to get current timezone (i.e. PST, MDT, etc)
dataset/ETHPy150Open ooici/pyon/pyon/ion/resource.py/ExtendedResourceContainer._find_associations--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/timezone_test.py/TimezoneTestCase.test_get_zonecode