def __init__(
        self,
        kind: str,
        inputs: List[str],
        outputs: List[str],
        kwinputs: Optional[Dict[str, str]] = None,
        name: Optional[str] = None,
        parent: Optional[Union["InternalTorchIRGraph", "InternalTorchIRBlock"]] = None,
        attr: Optional[Dict[str, Any]] = None,
        blocks: Optional[List["InternalTorchIRBlock"]] = None,
        model_hierarchy: Optional[str] = None,
        meta: Optional[Dict] = None,
    ):
        """
        Arguments:
            name: Name of the node.
            kind: the kind (op) of the node.
            inputs: list of input symbols.
            outputs: list of output symbols.
            kwinputs: dict of keyword input symbols.
            parent: The InternalTorchIRGraph/Block this node belongs to.
            attr:  dict of named attributes.
            blocks: list of InternalTorchIRBlock.
            model_hierarchy: str represents TorchScript node's model hierarchy.
            meta: A dictionary of torch fx node metadata inherited from torch.fx.Node.meta
        """
        if not name and not outputs:
            self.name = ""
        else:
            self.name = name if name else outputs[0]

        self.kind = kind
        self.inputs = inputs
        self.outputs = outputs
        self.kwinputs = kwinputs
        self.parent = parent
        self.attr = attr if attr is not None else {"value": None}
        self.blocks = blocks if blocks is not None else []
        self.model_hierarchy = model_hierarchy
        self.meta = meta

        Arguments:
            name: Name of the node.
            kind: the kind (op) of the node.
            inputs: list of input symbols.
            outputs: list of output symbols.
            kwinputs: dict of keyword input symbols.
            parent: The InternalTorchIRGraph/Block this node belongs to.
            attr:  dict of named attributes.
            blocks: list of InternalTorchIRBlock.
            model_hierarchy: str represents TorchScript node's model hierarchy.
            meta: A dictionary of torch fx node metadata inherited from torch.fx.Node.meta
        
coremltools/converters/mil/frontend/torch/internal_graph.py