class_docstr: Class to denote a base dyadic tensor component.
class_docstr_tok: ["Class","to","denote","a","base","dyadic","tensor","component","."]
code: def __new__(cls, vector1, vector2):
      Vector = sympy.vector.Vector
      BaseVector = sympy.vector.BaseVector
      VectorZero = sympy.vector.VectorZero
      # Verify arguments
      if not isinstance(
          vector1, (BaseVector, VectorZero)
      ) or not isinstance(vector2, (BaseVector, VectorZero)):
          raise TypeError(
              "BaseDyadic cannot be composed of non-base " + "vectors"
          )
      # Handle special case of zero vector
      elif vector1 == Vector.zero or vector2 == Vector.zero:
          return Dyadic.zero
      # Initialize instance
      obj = super().__new__(cls, vector1, vector2)
      obj._base_instance = obj
      obj._measure_number = 1
      obj._components = {obj: S.One}
      obj._sys = vector1._sys
      obj._pretty_form = (
          "(" + vector1._pretty_form + "|" + vector2._pretty_form + ")"
      )
      obj._latex_form = (
          r"\left("
          + vector1._latex_form
          + r"{\middle|}"
          + vector2._latex_form
          + r"\right)"
      )
  
      return obj
  
imports: from __future__ import annotations
  from sympy.vector.basisdependent import BasisDependent, BasisDependentAdd, BasisDependentMul, BasisDependentZero
  from sympy.core import S, Pow
  from sympy.core.expr import AtomicExpr
  from sympy.matrices.immutable import ImmutableDenseMatrix
  import sympy.vector
label_desc: Use image node_id 1 for calling the BaseDyadic obj's underlying member method code with example usage: obj.__new__(cls, vector1, vector2) and returns: obj, Dyadic