@staticmethod<EOL><INDENT>def create_trace(<EOL>turn_activity: Activity,<EOL>name: str,<EOL>value: object = None,<EOL>value_type: str = None,<EOL>label: str = None,<EOL>) -> Activity:<DEDENT>
from_property = (<EOL>ChannelAccount(<EOL>id=turn_activity.recipient.id, name=turn_activity.recipient.name<EOL>)<EOL>if turn_activity.recipient is not None<EOL>else ChannelAccount()<EOL>)<EOL>if value_type is None and value is not None:<EOL><INDENT>value_type = type(value).__name__<EOL><DEDENT>reply = Activity(<EOL>type=ActivityTypes.trace,<EOL>timestamp=datetime.utcnow(),<EOL>from_property=from_property,<EOL>recipient=ChannelAccount(<EOL>id=turn_activity.from_property.id, name=turn_activity.from_property.name<EOL>),<EOL>reply_to_id=turn_activity.id,<EOL>service_url=turn_activity.service_url,<EOL>channel_id=turn_activity.channel_id,<EOL>conversation=ConversationAccount(<EOL>is_group=turn_activity.conversation.is_group,<EOL>id=turn_activity.conversation.id,<EOL>name=turn_activity.conversation.name,<EOL>),<EOL>name=name,<EOL>label=label,<EOL>value_type=value_type,<EOL>value=value,<EOL>)<EOL>return reply<EOL>
Creates a trace activity based on this activity.

        :param turn_activity:
        :type turn_activity: Activity
        :param name: The value to assign to the trace activity's <see cref="Activity.name"/> property.
        :type name: str
        :param value: The value to assign to the trace activity's <see cref="Activity.value"/> property., defaults to None
        :param value: object, optional
        :param value_type: The value to assign to the trace activity's <see cref="Activity.value_type"/> property, defaults to None
        :param value_type: str, optional
        :param label: The value to assign to the trace activity's <see cref="Activity.label"/> property, defaults to None
        :param label: str, optional
        :return: The created trace activity.
        :rtype: Activity