code: def setUp(self):
      midi_filename = os.path.join(
          tf.resource_loader.get_data_files_path(),
          "../testdata/example.mid",
      )
  
      root_dir = tempfile.mkdtemp(dir=self.get_temp_dir())
      sub_1_dir = os.path.join(root_dir, "sub_1")
      sub_2_dir = os.path.join(root_dir, "sub_2")
      sub_1_sub_dir = os.path.join(sub_1_dir, "sub")
  
      tf.gfile.MkDir(sub_1_dir)
      tf.gfile.MkDir(sub_2_dir)
      tf.gfile.MkDir(sub_1_sub_dir)
  
      tf.gfile.Copy(midi_filename, os.path.join(root_dir, "midi_1.mid"))
      tf.gfile.Copy(midi_filename, os.path.join(root_dir, "midi_2.mid"))
      tf.gfile.Copy(
          midi_filename, os.path.join(sub_1_dir, "midi_3.mid")
      )
      tf.gfile.Copy(
          midi_filename, os.path.join(sub_2_dir, "midi_3.mid")
      )
      tf.gfile.Copy(
          midi_filename, os.path.join(sub_2_dir, "midi_4.mid")
      )
      tf.gfile.Copy(
          midi_filename, os.path.join(sub_1_sub_dir, "midi_5.mid")
      )
  
      tf.gfile.GFile(
          os.path.join(root_dir, "non_midi_file"), mode="w"
      ).write("non-midi data")
  
      self.expected_sub_dirs = {
          "": {"sub_1", "sub_2", "sub_1/sub"},
          "sub_1": {"sub"},
          "sub_1/sub": set(),
          "sub_2": set(),
      }
      self.expected_dir_midi_contents = {
          "": {"midi_1.mid", "midi_2.mid"},
          "sub_1": {"midi_3.mid"},
          "sub_2": {"midi_3.mid", "midi_4.mid"},
          "sub_1/sub": {"midi_5.mid"},
      }
      self.root_dir = root_dir
  
file_path: magenta/magenta/scripts/convert_dir_to_note_sequences_test.py
imports: import os
  import tempfile
  from magenta.scripts import convert_dir_to_note_sequences
  from note_seq import music_pb2
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the ConvertMidiDirToSequencesTest obj's underlying member method code with example usage: obj.setUp() without return types