class_docstr: Registry of pluggable filesystem implementations used in TFX components.
docstr: Get filesystem plugin for given scheme string.
code: def get_filesystem_for_scheme(
      self, scheme: PathType
  ) -> Type[filesystem.Filesystem]:
      """Get filesystem plugin for given scheme string."""
      if isinstance(scheme, bytes):
          scheme = scheme.decode("utf-8")
      if scheme not in self._preferred_filesystem_by_scheme:
          if self._fallback_filesystem:
              return self._fallback_filesystem
          else:
              raise Exception(
                  (
                      "The filesystem scheme %r is not available for use. For expanded "
                      "filesystem scheme support, install the `tensorflow` package to "
                      "enable additional filesystem plugins."
                  )
                  % scheme
              )
      return self._preferred_filesystem_by_scheme[scheme]
  
file_path: tfx/tfx/dsl/io/filesystem_registry.py
imports: import re
  import threading
  from typing import Type
  from tfx.dsl.io import filesystem
  from tfx.dsl.io.filesystem import PathType
label_desc: Use image node_id 3 for calling the FilesystemRegistry obj's underlying member method code with example usage: obj.get_filesystem_for_scheme(scheme) and returns: self, self