code: def testSourceTargetFiltering(self):
      g = Graph.Barabasi(1000, 2, directed=True)
      es1 = {e.source for e in g.es.select(_target_in=[2, 4])}
      es2 = {v1 for v1, v2 in g.get_edgelist() if v2 in [2, 4]}
      self.assertTrue(es1 == es2)
  
imports: import unittest
  from igraph import Graph, Edge, EdgeSeq, VertexSeq
  from .utils import is_pypy
label_desc: Use image node_id 18 for calling the EdgeSeqTests obj's underlying member method code with example usage: obj.testSourceTargetFiltering() without return types