docstr: Test args_indexes
docstr_tok: ["Test","args_indexes"]
code: def test_args_indexes(self):
      """Test args_indexes"""
  
      def f1(a, b, c, d=1, *, e=2, f=3, **kwargs):
          pass
  
      def f2(a, b, c, *args, e=2, f=3, **kwargs):
          pass
  
      self.assertEqual(
          list(objax.util.args_indexes(f1, ["a", "c", "d"])), [0, 2, 3]
      )
      self.assertEqual(
          list(objax.util.args_indexes(f2, ["a", "c"])), [0, 2]
      )
      with self.assertRaises(ValueError):
          list(objax.util.args_indexes(f1, ["f"]))
      with self.assertRaises(ValueError):
          list(objax.util.args_indexes(f2, ["f"]))
  
file_path: objax/tests/util.py
imports: import re
  import unittest
  import objax
label_desc: Use image node_id 3 for calling the TestUtil obj's underlying member method code with example usage: obj.test_args_indexes() without return types