code: def testMakeClearAndRemoveOutputDirs(self):
      output_artifacts = (
          self._output_resolver().generate_output_artifacts(1)
      )
      outputs_utils.make_output_dirs(output_artifacts)
      for _, artifact_list in output_artifacts.items():
          for artifact in artifact_list:
              if artifact.is_external:
                  continue
              if isinstance(artifact, ValueArtifact):
                  self.assertFalse(fileio.isdir(artifact.uri))
              else:
                  self.assertTrue(fileio.isdir(artifact.uri))
                  with fileio.open(
                      os.path.join(artifact.uri, "output"), "w"
                  ) as f:
                      f.write("")
              self.assertTrue(fileio.exists(artifact.uri))
  
      outputs_utils.remove_output_dirs(output_artifacts)
      for _, artifact_list in output_artifacts.items():
          for artifact in artifact_list:
              if artifact.is_external:
                  continue
              self.assertFalse(fileio.exists(artifact.uri))
  
imports: import os
  from unittest import mock
  from absl.testing import parameterized
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.orchestration import data_types_utils
  from tfx.orchestration.experimental.core import constants
  from tfx.orchestration.portable import data_types
  from tfx.orchestration.portable import outputs_utils
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import artifact
  from tfx.types import standard_artifacts
  from tfx.types.value_artifact import ValueArtifact
  from tfx.utils import test_case_utils
  from google.protobuf import text_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 10 for calling the OutputUtilsTest obj's underlying member method code with example usage: obj.testMakeClearAndRemoveOutputDirs() without return types