code: def test_hadoop_mkdir_p(self):
      test_text = "HELLO WORLD"
  
      with hadoop_open(resource("./some/foo/bar.txt"), "w") as out:
          out.write(test_text)
  
      self.assertTrue(hl.hadoop_exists(resource("./some/foo/bar.txt")))
  
      with hadoop_open(resource("./some/foo/bar.txt")) as f:
          assert f.read() == test_text
  
      hl.current_backend().fs.rmtree(resource("./some"))
  
imports: import json
  import unittest
  import hail
  from hail.utils import *
  from hail.utils.misc import escape_str, escape_id
  from hail.utils.java import FatalError
  from hail.utils.linkedlist import LinkedList
  from ..helpers import *
label_desc: Use image node_id 3 for calling the Tests obj's underlying member method code with example usage: obj.test_hadoop_mkdir_p() without return types