code: def most_specific_common_supertype(self, others):
      if any(len(other.shape) != len(self.shape) for other in others):
          return None
  
      dims = [
          dim
          if all(dim == other.shape[i] for other in others)
          else None
          for i, dim in enumerate(self.shape)
      ]
      return MockShape(*dims)
  
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 3 for calling the MockShape obj's underlying member method code with example usage: obj.most_specific_common_supertype(others) and returns: MockShape, None