code: def _gen(self, struct, prefix=None):
      for name, contents in struct.items():
          path = (prefix or self) / name
  
          if isinstance(contents, dict):
              if not contents:
                  path.mkdir(parents=True, exist_ok=True)
              else:
                  self._gen(contents, prefix=path)
          else:
              path.parent.mkdir(parents=True, exist_ok=True)
              if isinstance(contents, bytes):
                  path.write_bytes(contents)
              else:
                  path.write_text(contents, encoding="utf-8")
  
imports: import locale
  import pathlib
  from abc import ABC, abstractmethod
label_desc: Use image node_id 11 for calling the Cloud obj's underlying member method code with example usage: obj._gen(struct, prefix) without return types