code: def testWithinFiltering(self):
      g = Graph.Lattice([10, 10])
      vs = [0, 1, 2, 10, 11, 12, 20, 21, 22]
      vs2 = (0, 1, 10, 11)
  
      es1 = g.es.select(_within=vs)
      es2 = g.es.select(_within=VertexSeq(g, vs))
  
      for es in [es1, es2]:
          self.assertTrue(len(es) == 12)
          self.assertTrue(
              all(e.source in vs and e.target in vs for e in es)
          )
          self.assert_edges_unique_in(es)
  
          es_filtered = es.select(_within=vs2)
          self.assertTrue(len(es_filtered) == 4)
          self.assertTrue(
              all(
                  e.source in vs2 and e.target in vs2
                  for e in es_filtered
              )
          )
          self.assert_edges_unique_in(es_filtered)
  
imports: import unittest
  from igraph import Graph, Edge, EdgeSeq, VertexSeq
  from .utils import is_pypy
label_desc: Use image node_id 19 for calling the EdgeSeqTests obj's underlying member method code with example usage: obj.testWithinFiltering() without return types