def inspect(self, mrf=True):
self.packer_cmd = self.packer.inspect<EOL>self._add_opt('<STR_LIT>' if mrf else None)<EOL>self._add_opt(self.packerfile)<EOL>result = self.packer_cmd()<EOL>if mrf:<EOL><INDENT>result.parsed_output = self._parse_inspection_output(<EOL>result.stdout.decode())<EOL><DEDENT>else:<EOL><INDENT>result.parsed_output = None<EOL><DEDENT>return result<EOL>
Inspects a Packer Templates file (`packer inspect -machine-readable`)

        To return the output in a readable form, the `-machine-readable` flag
        is appended automatically, afterwhich the output is parsed and returned
        as a dict of the following format:
          "variables": [
            {
              "name": "aws_access_key",
              "value": "{{env `AWS_ACCESS_KEY_ID`}}"
            },
            {
              "name": "aws_secret_key",
              "value": "{{env `AWS_ACCESS_KEY`}}"
            }
          ],
          "provisioners": [
            {
              "type": "shell"
            }
          ],
          "builders": [
            {
              "type": "amazon-ebs",
              "name": "amazon"
            }
          ]

        :param bool mrf: output in machine-readable form.