class_docstr: Abstract class that defines various tests for topologies
  
  Whenever a topology inherits from ABCTestTopology,
  you don't need to write down all tests anymore. Instead, you can just
  specify all required fixtures in the test suite.
docstr: Test if the neighbor_idx attribute is assigned
docstr_tok: ["Test","if","the","neighbor_idx","attribute","is","assigned"]
code: def test_neighbor_idx(self, topology, options, swarm, static):
      """Test if the neighbor_idx attribute is assigned"""
      topo = topology(static=static)
      topo.compute_gbest(swarm, **options)
      assert topo.neighbor_idx is not None
  
file_path: pyswarms/tests/backend/topology/abc_test_topology.py
imports: import abc
  import pytest
label_desc: Use image node_id 5 for calling the ABCTestTopology obj's underlying member method code with example usage: obj.test_neighbor_idx(topology, options, swarm, static) without return types