parameters: (arr)
return_statement: return True
docstring: return True if shape is of form
      (1,C,1,1) or (C,1,1)
docstring_summary: return True if shape is of form
      (1,C,1,1) or (C,1,1)
docstring_tokens: return True if shape is of form ( 1 C 1 1 ) or ( C 1 1 )
function: def _check_shape(arr):
      """
      return True if shape is of form
      (1,C,1,1) or (C,1,1)
      """
      rank = len(arr.shape)
      if not (rank == 3 or rank == 4):
          return False
      C = arr.shape[-3]
      if not (arr.shape == (1, C, 1, 1) or arr.shape == (C, 1, 1)):
          return False
      return True
function_tokens: def _check_shape ( arr ) : rank = len ( arr . shape ) if not ( rank == 3 or rank == 4 ) : return False C = arr . shape [ - 3 ] if not ( arr . shape == ( 1 , C , 1 , 1 ) or arr . shape == ( C , 1 , 1 ) ) : return False return True