code: def _get_record_attrs(out_keys):
      
      if len(out_keys) == 1:
          attr = list(out_keys.keys())[0]
          if out_keys[attr]:
              return attr, out_keys[attr]
      return None, None
docs: Check for records, a single key plus output attributes.