code: def __validate_file_path(cls, v: Union[str, Path]) -> Path:
      if isinstance(v, str):
          v = Path(v)
  
      if v.exists() and v.is_file():
          return v
  
imports: from __future__ import annotations
  from pathlib import Path
  from typing import Optional
  from typing import Type
  from typing import Union
  import pydantic
  from ...serde.serializable import serializable
  from ...types.syft_object import SYFT_OBJECT_VERSION_1
  from ...types.syft_object import SyftObject
  from ...types.uid import UID
label_desc: Use image node_id 1 for calling the ActionFileData obj's underlying member method code with example usage: obj.__validate_file_path(cls, v) and returns: v