class_docstr: A base class for defining methods that all input/output components should have.
class_docstr_tok: ["A","base","class","for","defining","methods","that","all","input\/output","components","should","have","."]
code: def get_load_fn_and_initial_value(value):
      if callable(value):
          initial_value = value()
          load_fn = value
      else:
          initial_value = value
          load_fn = None
      return load_fn, initial_value
  
imports: from __future__ import annotations
  import abc
  import hashlib
  import json
  import sys
  import warnings
  from abc import ABC, abstractmethod
  from enum import Enum
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Callable
  from gradio_client.documentation import set_documentation_group
  from PIL import Image
  from gradio import utils
  from gradio.blocks import Block, BlockContext
  from gradio.component_meta import ComponentMeta
  from gradio.data_classes import GradioDataModel
  from gradio.events import EventListener
  from gradio.layouts import Form
  from gradio.processing_utils import move_files_to_cache
label_desc: Use image node_id 4 for calling the Component obj's underlying member method code with example usage: obj.get_load_fn_and_initial_value(value) and returns: load_fn,  initial_value