code: def pubdev_6439():
      data = [
          ["C1"],
          [
              "Ｘ県 Ａ市 "
          ],  # First observation contains replacement character for unknown char
          ["Ｘ県 Ｂ市"],
      ]
  
      frame = H2OFrame(data, header=True, column_types=["enum"])
  
      frame_categories = frame["C1"].categories()
      print(frame_categories)
  
      # Two observations
      assert len(frame_categories) == 2
      assert (
          len(frame_categories[0]) == 6
      )  # First observation has six characters (space at the end)
      assert (
          len(frame_categories[1]) == 5
      )  # Second observation has 5 characters (missing space at the end)
  
      # Python 2 and 3 handle strings differently
      if sys.version_info[0] == 3:
          assert (
              "".join(data[1]) == frame_categories[0]
          )  # First categorical level equals to first observation
          assert (
              "".join(data[2]) == frame_categories[1]
          )  # Second categorical levels equals to second observation
      elif sys.version_info[0] == 2:
          assert (
              "".join(data[1]).decode("utf-8") == frame_categories[0]
          )  # First categorical level equals to first observation
          assert (
              "".join(data[2]).decode("utf-8") == frame_categories[1]
          )  # Second categorical levels equals to second observation
      else:
          assert False
  
label_desc: Use image node_id 1 for calling a global function with example usage: pubdev_6439() without return types