class_docstr: Dictionary which specifies the properties of a Frame (Dataset) for a specific use
  (e.g., prostate data with binomial classification on the CAPSULE column
  OR prostate data with regression on the AGE column).
class_docstr_tok: ["Dictionary","which","specifies","the","properties","of","a","Frame","(","Dataset",")","for","a","specific","use","(","e.g.",",","prostate","data","with","binomial","classification","on","the","CAPSULE","column","OR","prostate","data","with","regression","on","the","AGE","column",")","."]
code: def import_and_validate_dataset(self, a_node):
      if isVerbose():
          print("About to import and validate: " + self["path"])
      import_result = a_node.import_files(path=self["path"])
      if isVerboser():
          print("import_result: ")
          pp.pprint(import_result)
          print("frames: ")
          pp.pprint(
              a_node.frames(
                  key=import_result["destination_frames"][0],
                  row_count=5,
              )
          )
  
      frames = a_node.frames(
          key=import_result["destination_frames"][0], row_count=5
      )["frames"]
      assert frames[0][
          "is_text"
      ], "FAIL: Raw imported Frame is not is_text: " + repr(frames[0])
      parse_result = a_node.parse(
          key=import_result["destination_frames"][0],
          dest_key=self["dest_key"],
      )  # TODO: handle multiple files
      key = parse_result["frames"][0]["frame_id"]["name"]
      assert key == self["dest_key"], (
          "FAIL: Imported frame key is wrong; expected: "
          + self["dest_key"]
          + ", got: "
          + key
      )
      assert (
          self["expected_rows"] == parse_result["frames"][0]["rows"]
      ), (
          "FAIL: Imported frame number of rows is wrong; expected: "
          + str(self["expected_rows"])
          + ", got: "
          + str(parse_result["frames"][0]["rows"])
      )
  
      self["dataset"] = parse_result["frames"][
          0
      ]  # save the imported dataset object
  
      if isVerbose():
          print(
              "Imported and validated key: "
              + self["dataset"]["frame_id"]["name"]
          )
      return self["dataset"]
  
imports: import sys, os, time, json, datetime, errno, stat, getpass, requests, pprint
  import h2o
label_desc: Use image node_id 2 for calling the DatasetSpec obj's underlying member method code with example usage: obj.import_and_validate_dataset(a_node) and returns: self