code: func LoadPodFromFile(filePath string) (*v1.Pod, error) {
  	if filePath == "" {
  		return nil, fmt.Errorf("file path not specified")
  	}
  	podDef, err := ioutil.ReadFile(filePath)
  	if err != nil {
  		return nil, fmt.Errorf("failed to read file path %s: %+v", filePath, err)
  	}
  	if len(podDef) == 0 {
  		return nil, fmt.Errorf("file was empty: %s", filePath)
  	}
  	pod := &v1.Pod{}
  
  	codec := legacyscheme.Codecs.UniversalDecoder()
  	if err := runtime.DecodeInto(codec, podDef, pod); err != nil {
  		return nil, fmt.Errorf("failed decoding file: %v", err)
  	}
  	return pod, nil
  }
docs: // LoadPodFromFile will read, decode, and return a Pod from a file.