code: def from_dict(self, data, recursive=1):
          
          # Find other linked resources
          data = self._encode_resource(data, recursive=recursive)
          self.data = data
docs: Populate the resource from a python dict
  
          :param recursive: level of recursion for fetching resources
          :type recursive: int