code: func objectMetaAndKind(typer runtime.ObjectTyper, obj runtime.Object) (*api.ObjectMeta, unversioned.GroupVersionKind, error) {
  	objectMeta, err := api.ObjectMetaFor(obj)
  	if err != nil {
  		return nil, unversioned.GroupVersionKind{}, errors.NewInternalError(err)
  	}
  	kind, err := typer.ObjectKind(obj)
  	if err != nil {
  		return nil, unversioned.GroupVersionKind{}, errors.NewInternalError(err)
  	}
  	return objectMeta, kind, nil
  }
docs: // objectMetaAndKind retrieves kind and ObjectMeta from a runtime object, or returns an error.