docstr: Sum or max across all resource types within a layer, similar to
  summing along axis 0 in numpy:
  [
    ( 3 ^ , 4 ^ , 1 ),
    ( 2 | , 1 | , 6 ),
    ( 1 | , 4 | , 0 ),
  ]
  The method for each column is specified in methods, which should be an array
  with one index per column
docstr_tok: ["Sum","or","max","across","all","resource","types","within","a","layer",",","similar","to","summing","along","axis","0","in","numpy",":","[","(","3","^",",","4","^",",","1",")",",","(","2","|",",","1","|",",","6",")",",","(","1","|",",","4","|",",","0",")",",","]","The","method","for","each","column","is","specified","in","methods",",","which","should","be","an","array","with","one","index","per","column"]
code: def _merge_resource_layer(cls, resources, methods):
      """
      Sum or max across all resource types within a layer, similar to
      summing along axis 0 in numpy:
      [
        ( 3 ^ , 4 ^ , 1 ),
        ( 2 | , 1 | , 6 ),
        ( 1 | , 4 | , 0 ),
      ]
      The method for each column is specified in methods, which should be an array
      with one index per column
      """
      return [method(r) for method, r in zip(methods, zip(*resources))]
  
imports: from collections import UserDict, defaultdict
  import itertools
  import operator
  import re
  import tempfile
  from snakemake.exceptions import ResourceScopesException, WorkflowError
  from snakemake.common.tbdstring import TBDString
label_desc: Use image node_id 5 for calling the GroupResources obj's underlying member method code with example usage: obj._merge_resource_layer(cls, resources, methods) and returns: unknown