class_docstr: Hook which is triggered by each operation when operands contain ColoParameter.
  To customize it, you must inherit this abstract class, and implement ``pre_forward``,
  ``post_forward``, ``pre_backward`` and ``post_backward``.
  These four methods apply a list of ColoParameter as input args.
class_docstr_tok: ["Hook","which","is","triggered","by","each","operation","when","operands","contain","ColoParameter",".","To","customize","it",",","you","must","inherit","this","abstract","class",",","and","implement","``","pre_forward","``",",","``","post_forward","``",",","``","pre_backward","``","and","``","post_backward","``",".","These","four","methods","apply","a","list","of","ColoParameter","as","input","args","."]
code: def pre_forward(self, params: List[torch.Tensor]) -> None:
      pass
  
imports: from abc import ABC, abstractmethod
  from contextlib import contextmanager
  from typing import Any, List, Tuple
  import torch
  from torch.utils._pytree import TreeSpec, tree_flatten, tree_unflatten
label_desc: Use image node_id 1 for calling the ColoParamOpHook obj's underlying member method code with example usage: obj.pre_forward(params) without return types