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 AttributeError is raised when passed with a non-Swarm instance
docstr_tok: ["Test","if","AttributeError","is","raised","when","passed","with","a","non-Swarm","instance"]
code: def test_input_swarm(self, topology, static, swarm, options):
      """Test if AttributeError is raised when passed with a non-Swarm instance"""
      with pytest.raises(AttributeError):
          topo = topology(static=static)
          topo.compute_gbest(swarm, **options)
  
file_path: pyswarms/tests/backend/topology/abc_test_topology.py
imports: import abc
  import pytest
label_desc: Use image node_id 6 for calling the ABCTestTopology obj's underlying member method code with example usage: obj.test_input_swarm(topology, static, swarm, options) without return types