def __init__(
        self,
        parent: Optional["InternalTorchIRNode"] = None,
        nodes: Optional[List["InternalTorchIRNode"]] = None,
        inputs: Optional[List[str]] = None,
        outputs: Optional[List[str]] = None,
    ):
        """
        Arguments:
            parent: The InternalTorchIRNode this block belongs to.
            nodes: list of InternalTorchIRNode in the block
            inputs: list of input symbols.
            outputs: list of output symbols.
        """

        self.nodes = nodes
        self.inputs = inputs
        self.outputs = outputs
        self.parent = parent

        Arguments:
            parent: The InternalTorchIRNode this block belongs to.
            nodes: list of InternalTorchIRNode in the block
            inputs: list of input symbols.
            outputs: list of output symbols.
        
coremltools/converters/mil/frontend/torch/internal_graph.py