function inspectPatternElementForKeys(child) {
  if (child.type === 'ObjectPattern') {
    return inspectObjectPatternForKeys(child)
  } else if (child.type === 'ArrayPattern') {
    return inspectArrayPatternForKeys(child)
  } else if (child.type === 'Identifier') {
    // return a single empty element, meaning "one result, the whole thing"
    return [[]]
  } else if (child.type === 'AssignmentPattern') {
    // equivalent to hitting an Identifier
    return [[]]
  } else {
    throw new Error(
      `LavaMoat/tofu - inspectPatternElementForKeys - unable to parse element "${child.type}"`
    )
  }
}
@param {import('@babel/types').Node | import('@babel/types').PatternLike} child
@returns