code: def type(self, name):  # pylint: disable=missing-function-docstring
      if name in self.metadata:
          return self.metadata[name]
      return {}
  
imports: import collections
  import enum
  import json
  import os
label_desc: Use image node_id 2 for calling the _Metadata obj's underlying member method code with example usage: obj.type(name) and returns: dict, self