function grabImportNameAndPath(json) {
  let output;
  //inputted AST has a property named body that is an array of objects
  //importObjectArr is filtered
  const importObjectArr = json.body.filter((importObj) => {
    //whatever importObjs have a 'type' value of 'ImportDeclaration' are what are returned
    if (importObj.type === 'ImportDeclaration') {
      return {
        importObj
      }
    }
  })
  //importObjectArr is mappped over and if the importObj.specifiers[0] is true/truthy, a new object is returned
  // console.log(importObjectArr, 'XXX');
  output = importObjectArr.map((importObj) => {
    if (importObj.specifiers[0]) {
      return {
        name: importObj.specifiers[0].local.name,
        path: importObj.source.value,
      }
    }
  })
  // output is reassigned to the array returned by filtering anything that isn't true/truthy
  // console.log(output, '***');
  output = output.filter((obj) => {
    if (obj) {
      return obj;
    }
  })
  // console.log(output, 'SSS');
  //an array of imported objects is returned
  return output;
}
returns an Array of Objects with the name and path of IMPORT objects
@param {Object} json- AST Object