code: def search(self, name):
      paginator = self._client.get_paginator("list_state_machines")
      return next(
          (
              state_machine
              for page in paginator.paginate()
              for state_machine in page["stateMachines"]
              if state_machine["name"] == name
          ),
          None,
      )
  
file_path: metaflow/metaflow/plugins/aws/step_functions/step_functions_client.py
imports: from metaflow.metaflow_config import AWS_SANDBOX_ENABLED, AWS_SANDBOX_REGION, SFN_EXECUTION_LOG_GROUP_ARN
label_desc: Use image node_id 2 for calling the StepFunctionsClient obj's underlying member method code with example usage: obj.search(name) and returns: next