code: def allow_network_access_grading(self):
          
          vals = self._hook_manager.call_hook('task_network_grading', course=self.get_course(), task=self, default=self._network_grading)
          return vals[0] if len(vals) else self._network_grading
docs: Return True if the grading container should have access to the network