code: def is_subtype_of(self, other: "MockShape") -> bool:
      if len(self.shape) != len(other.shape):
          return False
  
      return all(
          o is None or s == o for s, o in zip(self.shape, other.shape)
      )
  
imports: from typing import Optional
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.core.function.polymorphism import type_dispatch
  from tensorflow.python.platform import test
  from tensorflow.python.types import trace
label_desc: Use image node_id 2 for calling the MockShape obj's underlying member method code with example usage: obj.is_subtype_of(other) and returns: all, False