class_docstr: Tests for caliban.platform.cloud.types.
code: def test_validate_accelerator_count(self, i, accel):
      valid_counts = ct.accelerator_counts(accel)
      if i in valid_counts:
          self.assertEqual(i, ct.validate_accelerator_count(accel, i))
      else:
          with self.assertRaises(ArgumentTypeError):
              ct.validate_accelerator_count(accel, i)
  
file_path: caliban/tests/caliban/platform/cloud/test_types.py
imports: import unittest
  from argparse import ArgumentTypeError
  import hypothesis.strategies
  from hypothesis import given
  import caliban.platform.cloud.types
label_desc: Use image node_id 1 for calling the TypesTestSuite obj's underlying member method code with example usage: obj.test_validate_accelerator_count(i, accel) without return types