docstr: Compute the best particle of the swarm and return the cost and
  position
code: def compute_gbest(self, swarm):
      """Compute the best particle of the swarm and return the cost and
      position"""
      raise NotImplementedError("Topology::compute_gbest()")
  
file_path: pyswarms/pyswarms/backend/topology/base.py
imports: import abc
  import logging
  from ...utils.reporter import Reporter
label_desc: Use image node_id 2 for calling the Topology obj's underlying member method code with example usage: obj.compute_gbest(swarm) without return types