class_docstr: Optimization rule that optimize certain operands of the graph in topological way.
docstr: Apply this rule to the given operand.
  
  Parameters
  ----------
  op : OperandType
      Operand.
docstr_tok: ["Apply","this","rule","to","the","given","operand",".","Parameters","--","--","--","--","--","op",":","OperandType","Operand","."]
code: def apply_to_operand(self, op: OperandType) -> None:
      """
      Apply this rule to the given operand.
  
      Parameters
      ----------
      op : OperandType
          Operand.
      """
      pass
  
imports: import functools
  import weakref
  from abc import ABC, abstractmethod
  from collections import defaultdict
  from dataclasses import dataclass
  from enum import Enum
  from typing import Dict, List, Optional, Type, Set
  from ...core import OperandType, EntityType, enter_mode
  from ...core.graph import EntityGraph
  from ...utils import implements
label_desc: Use image node_id 2 for calling the OperandBasedOptimizationRule obj's underlying member method code with example usage: obj.apply_to_operand(op) without return types