code: def test_pos_only_definition(self):
      def f(a, b, c, /, d, e=1, *, f, g=2):
          pass
  
      self.assertEqual(
          5, f.__code__.co_argcount
      )  # 3 posonly + 2 "standard args"
      self.assertEqual(3, f.__code__.co_posonlyargcount)
      self.assertEqual((1,), f.__defaults__)
  
      def f(a, b, c=1, /, d=2, e=3, *, f, g=4):
          pass
  
      self.assertEqual(
          5, f.__code__.co_argcount
      )  # 3 posonly + 2 "standard args"
      self.assertEqual(3, f.__code__.co_posonlyargcount)
      self.assertEqual((1, 2, 3), f.__defaults__)
  
imports: import dis
  import pickle
  import unittest
  from test.support import check_syntax_error
label_desc: Use image node_id 6 for calling the PositionalOnlyTestCase obj's underlying member method code with example usage: obj.test_pos_only_definition() without return types