class_docstr: Base class defining the distribution default behavior and interface
docstr: Adds self to a node of a structure model corresponding to self.idx.
  
  Args:
      sm: The input StructureModel
  
  Returns:
      Updated StructureModel
docstr_tok: ["Adds","self","to","a","node","of","a","structure","model","corresponding","to","self.idx",".","Args",":","sm",":","The","input","StructureModel","Returns",":","Updated","StructureModel"]
code: def add_to_node(self, sm: StructureModel) -> StructureModel:
      """
      Adds self to a node of a structure model corresponding to self.idx.
  
      Args:
          sm: The input StructureModel
  
      Returns:
          Updated StructureModel
      """
      sm.nodes[self.idx]["dist_type"] = self
      return sm
  
imports: import itertools
  from abc import ABCMeta, abstractmethod
  from copy import deepcopy
  from typing import Dict, List, Tuple
  import numpy
  import torch
  from causalnex.structure.structuremodel import StructureModel
label_desc: Use image node_id 7 for calling the DistTypeBase obj's underlying member method code with example usage: obj.add_to_node(sm) and returns: sm