code: func GetCurrentRuntimeMetadata(metadataDir string) (*clitypes.RuntimeMetadata, error) {
  	if metadataDir == "" {
  		metadataDir = defaultRuntimeMetadataDir
  	}
  	filename := filepath.Join(metadataDir, clitypes.RuntimeMetadataName+".json")
  
  	data, err := ioutil.ReadFile(filename)
  	if err != nil {
  		return nil, err
  	}
  	var res clitypes.RuntimeMetadata
  	err = json.Unmarshal(data, &res)
  	if err != nil {
  		return nil, errors.Wrapf(err, "malformed runtime metadata file %s", filename)
  	}
  	return &res, nil
  }
docs: // GetCurrentRuntimeMetadata loads the current daemon runtime metadata information from the local host