code: def validate_replicas(self, data):
          
          environment = data.get('environment')
          if environment and environment.replicas:
              validate_replicas(data.get('framework'), environment.replicas)
docs: Validate distributed experiment