code: def from_client(cls, client: SyftClient) -> Self:
      return cls(
          node_id=client.id, verify_key=client.credentials.verify_key
      )
  
file_path: PySyft/packages/syft/src/syft/types/identity.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from typing_extensions import Self
  from ..node.credentials import SyftVerifyKey
  from ..serde.serializable import serializable
  from .base import SyftBaseModel
  from .uid import UID
label_desc: Use image node_id 2 for calling the Identity obj's underlying member method code with example usage: obj.from_client(cls, client) and returns: cls