code: def test_invalid_partial_derivative_valence():
      raises(ValueError, lambda: PartialDerivative(C(j), D(-j)))
      raises(ValueError, lambda: PartialDerivative(C(-j), D(j)))
  
imports: from sympy import sin, cos
  from sympy.testing.pytest import raises
  from sympy.tensor.toperators import PartialDerivative
  from sympy.tensor.tensor import TensorIndexType, tensor_indices, TensorHead, tensor_heads
  from sympy.core.numbers import Rational
  from sympy.core.symbol import symbols
  from sympy.matrices.dense import diag
  from sympy.tensor.array import Array
  from sympy.core.random import randint
label_desc: Use image node_id 1 for calling a global function with example usage: test_invalid_partial_derivative_valence() without return types