code: def from_example(cls):
      return cls(1)
  
imports: import unittest
  from pathlib import Path
  from typing import Any, Dict, List
  from transfer_nlp.plugins.config import CallableInstantiationError, ExperimentConfig, LoopInConfigError, UnknownPluginException, UnknownReferenceError, register_plugin
label_desc: Use image node_id 2 for calling the DemoClassMethod obj's underlying member method code with example usage: obj.from_example(cls) and returns: cls