code: def create_backward_compatibility_files():
      import os
  
      (
          all_values_table,
          all_values_matrix_table,
      ) = create_all_values_datasets()
  
      file_version = Env.hail().expr.ir.FileFormat.version().toString()
      supported_codecs = scala_object(
          Env.hail().io, "BufferSpec"
      ).specs()
  
      table_dir = resource(
          os.path.join(
              "backward_compatability", str(file_version), "table"
          )
      )
      if not os.path.exists(table_dir):
          os.makedirs(table_dir)
  
      matrix_table_dir = resource(
          os.path.join(
              "backward_compatability",
              str(file_version),
              "matrix_table",
          )
      )
      if not os.path.exists(matrix_table_dir):
          os.makedirs(matrix_table_dir)
  
      i = 0
      for codec in supported_codecs:
          all_values_table.write(
              os.path.join(table_dir, f"{i}.ht"),
              overwrite=True,
              _codec_spec=codec.toString(),
          )
          all_values_matrix_table.write(
              os.path.join(matrix_table_dir, f"{i}.hmt"),
              overwrite=True,
              _codec_spec=codec.toString(),
          )
          i += 1
  
file_path: hail/hail/python/test/hail/matrixtable/test_file_formats.py
imports: import asyncio
  import pytest
  import os
  from typing import List, Tuple
  from pathlib import Path
  import hail
  from hail.utils.java import Env, scala_object
  from ..helpers import *
label_desc: Use image node_id 1 for calling a global function with example usage: create_backward_compatibility_files() without return types