class_docstr: PayloadRecord tests
code: def _mock_parser(cls, records=None, invalid_records=None):
      return Mock(
          parsed_records=records if records else [],
          invalid_parses=invalid_records if invalid_records else [],
          log_schema_type="foo:bar",
          __nonzero__=lambda: records is not None,
      )
  
imports: from mock import Mock
  from nose.tools import assert_equal
  from streamalert.classifier.payload.payload_base import PayloadRecord
label_desc: Use image node_id 2 for calling the TestPayloadRecord obj's underlying member method code with example usage: obj._mock_parser(cls, records, invalid_records) and returns: Mock