class_docstr: A class that supports simple attribute setter/getter.
  It is intended for storing metadata of a dataset and make it accessible globally.
  
  Examples:
  ::
      # somewhere when you load the data:
      MetadataCatalog.get("mydataset").thing_classes = ["person", "dog"]
  
      # somewhere when you print statistics or visualize:
      classes = MetadataCatalog.get("mydataset").thing_classes
class_docstr_tok: ["A","class","that","supports","simple","attribute","setter\/getter",".","It","is","intended","for","storing","metadata","of","a","dataset","and","make","it","accessible","globally",".","Examples",":",":",":","#","somewhere","when","you","load","the","data",":","MetadataCatalog.get","(","``","mydataset","''",")",".thing_classes","=","[","``","person","''",",","``","dog","''","]","#","somewhere","when","you","print","statistics","or","visualize",":","classes","=","MetadataCatalog.get","(","``","mydataset","''",")",".thing_classes"]
docstr: Returns all the metadata as a dict.
  Note that modifications to the returned dict will not reflect on the Metadata object.
docstr_tok: ["Returns","all","the","metadata","as","a","dict",".","Note","that","modifications","to","the","returned","dict","will","not","reflect","on","the","Metadata","object","."]
code: def as_dict(self):
      """
      Returns all the metadata as a dict.
      Note that modifications to the returned dict will not reflect on the Metadata object.
      """
      return copy.copy(self.__dict__)
  
imports: import copy
  import logging
  import types
  from collections import UserDict
  from typing import List
  from detectron2.utils.logger import log_first_n
label_desc: Use image node_id 3 for calling the Metadata obj's underlying member method code with example usage: obj.as_dict() and returns: copy