class_docstr: Base class for all graph blocks, implementing all methods needed for processing the adjacency matrix
docstr: Factory for creating a dummy tensor that is also a binary symmetric adjacency matrix.
  
  :param in_shape: The in_shape we want to create a tensor for.
  :return: A functional taking no arguments returning a tensor.
docstr_tok: ["Factory","for","creating","a","dummy","tensor","that","is","also","a","binary","symmetric","adjacency","matrix",".",":","param","in_shape",":","The","in_shape","we","want","to","create","a","tensor","for",".",":","return",":","A","functional","taking","no","arguments","returning","a","tensor","."]
code: def _dummy_symmetric_adj_tensor_factory(
      cls, in_shape: Sequence[int]
  ) -> Callable[[], torch.Tensor]:
      """Factory for creating a dummy tensor that is also a binary symmetric adjacency matrix.
  
      :param in_shape: The in_shape we want to create a tensor for.
      :return: A functional taking no arguments returning a tensor.
      """
  
      def create_binary_sym_tensor() -> torch.Tensor:
          """Create a binary symmetric test matrix for shape inference.
  
          :return: A binary symmetric matrix with one additional batch dimension.
          """
          xx_np = np.random.randint(0, 2, size=in_shape).astype(
              np.float32
          )
          xx = torch.from_numpy(xx_np)
          xx_sym = xx + torch.transpose(xx, dim0=-2, dim1=-1)
          xx_sym[xx_sym > 0] = 1
          xx_sym = xx_sym.unsqueeze(dim=0)
          return xx_sym
  
      return create_binary_sym_tensor
  
imports: from collections import OrderedDict
  from typing import Union, List, Sequence, Dict, Optional, Callable
  import numpy
  import torch
  from torch import nn
  from torch.nn.parameter import Parameter
  from maze.core.annotations import override
  from maze.core.utils.factory import Factory
  from maze.perception.blocks.shape_normalization import ShapeNormalizationBlock
label_desc: Use image node_id 1 for calling the GraphAdjacencyMethods obj's underlying member method code with example usage: obj._dummy_symmetric_adj_tensor_factory(cls, in_shape) and returns: create_binary_sym_tensor, xx_sym