code: def is_pretrained(self) -> bool:
      return self.use_pretrained
  
imports: from typing import Optional, Union
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.constants import IMAGE
  from ludwig.schema import utils
  from ludwig.schema.encoders.base import BaseEncoderConfig
  from ludwig.schema.encoders.utils import register_encoder_config
  from ludwig.schema.metadata import ENCODER_METADATA
  from ludwig.schema.utils import ludwig_dataclass
label_desc: Use image node_id 1 for calling the TVBaseEncoderConfig obj's underlying member method code with example usage: obj.is_pretrained() and returns: self