code: def test_entity(custom_entity):
      request_struct = {"foo": 1}
      assert custom_entity.to_request() == request_struct
  
imports: from __future__ import absolute_import
  import json
  import pytest
  from enum import Enum
  from sagemaker.workflow.condition_step import ConditionStep
  from sagemaker.workflow.conditions import ConditionGreaterThan
  from sagemaker.workflow.entities import DefaultEnumMeta, Entity
  from sagemaker.workflow.fail_step import FailStep
  from sagemaker.workflow.functions import Join, JsonGet
  from sagemaker.workflow.parameters import ParameterString, ParameterInteger
  from sagemaker.workflow.pipeline import Pipeline
  from sagemaker.workflow.properties import PropertyFile
  from tests.unit.sagemaker.workflow.helpers import CustomStep
label_desc: Use image node_id 3 for calling a global function with example usage: test_entity(custom_entity) without return types