code: def check_order(cls, order):
      return SortOrder(order)
  
imports: import warnings
  from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Tuple, Union
  from uuid import UUID
  from argilla.client.feedback.schemas.enums import RecordSortField, ResponseStatus, SortOrder
  from argilla.pydantic_v1 import BaseModel, Extra, Field, PrivateAttr, StrictInt, StrictStr, conint, validator
label_desc: Use image node_id 2 for calling the SortBy obj's underlying member method code with example usage: obj.check_order(cls, order) and returns: SortOrder