def test_dotted_name(self):
    """Tests that we can extract `obj.t`."""

    class Obj(object):

      def __init__(self):
        self.t = tf.constant([[0, 1]])

    @tc.contract(tc.Require("obj.t", shape=[1, 2]))
    def my_func(obj: tf.Tensor):
      del obj  # Unused.

    my_func(Obj())
Tests that we can extract `obj.t`.
language/canine/tensor_contracts_test.py