docstr: Get the corresponding format from a file extension.
  
  Args:
      file_extension: The file extension to get a format for.
  
  Returns:
      The format for the file extension, or None if not found.
docstr_tok: ["Get","the","corresponding","format","from","a","file","extension",".","Args",":","file_extension",":","The","file","extension","to","get","a","format","for",".","Returns",":","The","format","for","the","file","extension",",","or","None","if","not","found","."]
code: def get_format_from_file_extension(
      self, file_extension: str
  ) -> str | None:
      """Get the corresponding format from a file extension.
  
      Args:
          file_extension: The file extension to get a format for.
  
      Returns:
          The format for the file extension, or None if not found.
      """
      return self._extension_to_format.get(file_extension)
  
imports: from __future__ import annotations
  import warnings
  import typing
  from typing import Any, Collection, Optional, Protocol, TypeVar
  import google.protobuf.json_format
  import google.protobuf.message
  import google.protobuf.text_format
  import onnx
label_desc: Use image node_id 4 for calling the _Registry obj's underlying member method code with example usage: obj.get_format_from_file_extension(file_extension) and returns: self