docstr: output1 - True - algorithm for matrix, False - vector;
  output2 - need reshape
docstr_tok: ["output1","-","True","-","algorithm","for","matrix",",","False","-","vector",";","output2","-","need","reshape"]
code: def _check_shape(self, shape):
      """
      output1 - True - algorithm for matrix, False - vector;
      output2 - need reshape
      """
      if len(shape) > 2:
          return True, True
      elif len(shape) == 2:
          return True, False
      elif len(shape) == 2 and (shape[0] == 1 or shape[1] == 1):
          return False, False
      else:
          return False, False
  
imports: import torch
  import torch.optim
  from torch.nn.utils import clip_grad_norm_
  import operator
  import functools
  from copy import copy
  from math import sqrt
  import types
  import os
  import importlib
  from onmt.utils.misc import fn_args
label_desc: Use image node_id 4 for calling the AdaFactor obj's underlying member method code with example usage: obj._check_shape(shape) and returns: True,  True, True,  False, False,  False, False,  False