code: def validate(cls, value: Any) -> "FileContent":
      if isinstance(value, FileContent):
          return value
      elif isinstance(value, str):
          return FileContent(value)
      elif isinstance(value, (bytes, bytearray, memoryview)):
          return FileContent(base64.b64encode(value).decode())
      else:
          raise Exception("Wrong type")
  
file_path: opyrator/src/opyrator/components/types.py
imports: import base64
  from typing import Any, Dict
label_desc: Use image node_id 5 for calling the FileContent obj's underlying member method code with example usage: obj.validate(cls, value) and returns: value, FileContent, FileContent