code: def test_method_bound_internal(
      self, input_signature, type_constraint, decorator
  ):
      def testing_decorator(func):
          spec = function_type_utils.FunctionSpec.from_function_and_signature(
              func, input_signature
          )
          self.assertEqual(
              tuple(spec.fullargspec),
              (["self", "x", "y"], None, None, (1,), [], None, {}),
          )
  
          self.assertEqual(spec.default_values, {"y": 1})
  
          self.assertEqual(
              spec.function_type,
              function_type_lib.FunctionType(
                  [
                      function_type_lib.Parameter(
                          "self",
                          function_type_lib.Parameter.POSITIONAL_OR_KEYWORD,
                          False,
                          type_constraint[0],
                      ),
                      function_type_lib.Parameter(
                          "x",
                          function_type_lib.Parameter.POSITIONAL_OR_KEYWORD,
                          False,
                          type_constraint[1],
                      ),
                      function_type_lib.Parameter(
                          "y",
                          function_type_lib.Parameter.POSITIONAL_OR_KEYWORD,
                          True,
                          type_constraint[2],
                      ),
                  ]
              ),
          )
  
          return func
  
      class MyClass:
          @testing_decorator
          def foo(self, x, y=1):
              pass
  
      MyClass().foo(1)
  
imports: from absl.testing import parameterized
  from tensorflow.core.function import trace_type
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.python.eager.polymorphic_function import function_type_utils
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.platform import test
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 6 for calling the FunctionSpecTest obj's underlying member method code with example usage: obj.test_method_bound_internal(input_signature, type_constraint, decorator) and returns: func