class_docstr: Represents a parameter to a function.
class_docstr_tok: ["Represents","a","parameter","to","a","function","."]
code: def __init__(
      self,
      name: str,
      kind: Any,
      optional: bool,
      type_constraint: Optional[trace.TraceType],
  ):
      if optional and kind not in [
          self.POSITIONAL_ONLY,
          self.KEYWORD_ONLY,
          self.POSITIONAL_OR_KEYWORD,
      ]:
          raise ValueError(
              "Parameter "
              + name
              + " is optional and its kind must be one of {POSITIONAL_ONLY, "
              + "KEYWORD_ONLY, POSITIONAL_OR_KEYWORD}. Got: "
              + str(kind)
          )
  
      if type_constraint and kind in [
          self.VAR_POSITIONAL,
          self.VAR_KEYWORD,
      ]:
          raise TypeError(
              "Variable args/kwargs can not have type constraints."
          )
  
      if not isinstance(type_constraint, (trace.TraceType, type(None))):
          raise TypeError(
              "Type constraints can only be an instance of a TraceType but got "
              + "type_constraint="
              + str(type_constraint)
              + " for Parameter "
              + name
          )
  
      super().__init__(
          name,
          kind,
          default=CAPTURED_DEFAULT_VALUE if optional else self.empty,
          annotation=type_constraint
          if type_constraint is not None
          else self.empty,
      )
  
imports: import collections
  import inspect
  from typing import Any, Callable, Dict, List, Mapping, Optional, Sequence, Tuple
  from absl import logging
  from tensorflow.core.function import trace_type
  from tensorflow.core.function.polymorphism import function_type_pb2
  from tensorflow.core.function.trace_type import serialization
  from tensorflow.python.types import core
  from tensorflow.python.types import trace
label_desc: Use image node_id 1 to create a new Parameter object from inherited base classes: inspect with example: obj = Parameter(name, kind, optional, type_constraint)